|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
|
... |
|
... |
79 |
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
|
79 |
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
|
80 |
connect(buildAbsCB, SIGNAL(toggled(bool)),
|
80 |
connect(buildAbsCB, SIGNAL(toggled(bool)),
|
81 |
replAbsCB, SLOT(setEnabled(bool)));
|
81 |
replAbsCB, SLOT(setEnabled(bool)));
|
82 |
connect(useDesktopOpenCB, SIGNAL(toggled(bool)),
|
82 |
connect(useDesktopOpenCB, SIGNAL(toggled(bool)),
|
83 |
viewActionPB, SLOT(setDisabled(bool)));
|
83 |
viewActionPB, SLOT(setDisabled(bool)));
|
|
|
84 |
connect(useDesktopOpenCB, SIGNAL(toggled(bool)),
|
|
|
85 |
allExLE, SLOT(setEnabled(bool)));
|
84 |
|
86 |
|
85 |
setFromPrefs();
|
87 |
setFromPrefs();
|
86 |
}
|
88 |
}
|
87 |
|
89 |
|
88 |
// Update dialog state from stored prefs
|
90 |
// Update dialog state from stored prefs
|
|
... |
|
... |
100 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
102 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
101 |
|
103 |
|
102 |
// External editor. Can use desktop prefs or internal
|
104 |
// External editor. Can use desktop prefs or internal
|
103 |
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
|
105 |
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
|
104 |
viewActionPB->setEnabled(!prefs.useDesktopOpen);
|
106 |
viewActionPB->setEnabled(!prefs.useDesktopOpen);
|
|
|
107 |
allExLE->setEnabled(prefs.useDesktopOpen);
|
|
|
108 |
allExLE->setText(QString::fromUtf8(theconfig->getMimeViewerAllEx().c_str()));
|
105 |
|
109 |
|
106 |
keepSortCB->setChecked(prefs.keepSort);
|
110 |
keepSortCB->setChecked(prefs.keepSort);
|
107 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
111 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
108 |
switch (prefs.previewPlainPre) {
|
112 |
switch (prefs.previewPlainPre) {
|
109 |
case PrefsPack::PP_BR:
|
113 |
case PrefsPack::PP_BR:
|
|
... |
|
... |
240 |
prefs.queryReplaceAbstract = buildAbsCB->isChecked() &&
|
244 |
prefs.queryReplaceAbstract = buildAbsCB->isChecked() &&
|
241 |
replAbsCB->isChecked();
|
245 |
replAbsCB->isChecked();
|
242 |
|
246 |
|
243 |
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
|
247 |
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
|
244 |
prefs.useDesktopOpen = useDesktopOpenCB->isChecked();
|
248 |
prefs.useDesktopOpen = useDesktopOpenCB->isChecked();
|
|
|
249 |
theconfig->setMimeViewerAllEx((const char*)allExLE->text().toUtf8());
|
|
|
250 |
|
245 |
prefs.keepSort = keepSortCB->isChecked();
|
251 |
prefs.keepSort = keepSortCB->isChecked();
|
246 |
prefs.previewHtml = previewHtmlCB->isChecked();
|
252 |
prefs.previewHtml = previewHtmlCB->isChecked();
|
247 |
|
253 |
|
248 |
if (plainBRRB->isChecked()) {
|
254 |
if (plainBRRB->isChecked()) {
|
249 |
prefs.previewPlainPre = PrefsPack::PP_BR;
|
255 |
prefs.previewPlainPre = PrefsPack::PP_BR;
|