diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 88cff1adb..f41d0d36f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -18,7 +18,7 @@ support site, it would be great if you could add your name below as well. ******************** -- Sample Name +Erez Volk ******************** diff --git a/qt/aqt/importing.py b/qt/aqt/importing.py index 046176d18..65e649c7f 100644 --- a/qt/aqt/importing.py +++ b/qt/aqt/importing.py @@ -91,6 +91,7 @@ class ImportDialog(QDialog): self.frm.autoDetect.clicked.connect(self.onDelimiter) self.updateDelimiterButtonText() self.frm.allowHTML.setChecked(self.mw.pm.profile.get("allowHTML", True)) + self.frm.importMode.currentIndexChanged.connect(self.importModeChanged) self.frm.importMode.setCurrentIndex(self.mw.pm.profile.get("importMode", 1)) # import button b = QPushButton(_("Import")) @@ -286,6 +287,14 @@ you can enter it here. Use \\t to represent tab.""" def helpRequested(self): openHelp("importing") + def importModeChanged(self, newImportMode): + if newImportMode == 0: + allowTagModified = True + else: + allowTagModified = False + self.frm.tagModifiedCheck.setEnabled(allowTagModified) + self.frm.tagModifiedTag.setEnabled(allowTagModified) + def showUnicodeWarning(): """Shorthand to show a standard warning."""