diff --git a/qt/me/preferences_dialog.py b/qt/me/preferences_dialog.py index df39bca5..9ff55b32 100644 --- a/qt/me/preferences_dialog.py +++ b/qt/me/preferences_dialog.py @@ -57,6 +57,7 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog): setchecked(self.useRegexpBox, prefs.use_regexp) setchecked(self.removeEmptyFoldersBox, prefs.remove_empty_folders) self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type) + self.customCommandEdit.setText(prefs.custom_command) def save(self): prefs = self.app.prefs @@ -75,6 +76,7 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog): prefs.use_regexp = ischecked(self.useRegexpBox) prefs.remove_empty_folders = ischecked(self.removeEmptyFoldersBox) prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex() + prefs.custom_command = unicode(self.customCommandEdit.text()) def resetToDefaults(self): self.load(preferences.Preferences()) diff --git a/qt/me/preferences_dialog.ui b/qt/me/preferences_dialog.ui index 41d985c7..6ed46cd1 100644 --- a/qt/me/preferences_dialog.ui +++ b/qt/me/preferences_dialog.ui @@ -6,8 +6,8 @@ 0 0 - 449 - 361 + 325 + 360 @@ -19,9 +19,9 @@ true - + - + @@ -358,6 +358,16 @@ + + + + Custom Command (arguments: %d for dupe, %r for ref): + + + + + + diff --git a/qt/me/start.py b/qt/me/start.py index dd2469ea..07f883cd 100644 --- a/qt/me/start.py +++ b/qt/me/start.py @@ -14,6 +14,9 @@ import base.dg_rc from app import DupeGuru +if sys.platform == 'win32': + import base.cxfreeze_fix + if __name__ == "__main__": app = QApplication(sys.argv) app.setWindowIcon(QIcon(QPixmap(":/logo_me")))