--- a/src/qtgui/uiprefs_w.cpp
+++ b/src/qtgui/uiprefs_w.cpp
@@ -81,6 +81,8 @@
replAbsCB, SLOT(setEnabled(bool)));
connect(useDesktopOpenCB, SIGNAL(toggled(bool)),
viewActionPB, SLOT(setDisabled(bool)));
+ connect(useDesktopOpenCB, SIGNAL(toggled(bool)),
+ allExLE, SLOT(setEnabled(bool)));
setFromPrefs();
}
@@ -102,6 +104,8 @@
// External editor. Can use desktop prefs or internal
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
viewActionPB->setEnabled(!prefs.useDesktopOpen);
+ allExLE->setEnabled(prefs.useDesktopOpen);
+ allExLE->setText(QString::fromUtf8(theconfig->getMimeViewerAllEx().c_str()));
keepSortCB->setChecked(prefs.keepSort);
previewHtmlCB->setChecked(prefs.previewHtml);
@@ -242,6 +246,8 @@
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
prefs.useDesktopOpen = useDesktopOpenCB->isChecked();
+ theconfig->setMimeViewerAllEx((const char*)allExLE->text().toUtf8());
+
prefs.keepSort = keepSortCB->isChecked();
prefs.previewHtml = previewHtmlCB->isChecked();