|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
|
... |
|
... |
136 |
|
136 |
|
137 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
137 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
138 |
|
138 |
|
139 |
keepSortCB->setChecked(prefs.keepSort);
|
139 |
keepSortCB->setChecked(prefs.keepSort);
|
140 |
showTrayIconCB->setChecked(prefs.showTrayIcon);
|
140 |
showTrayIconCB->setChecked(prefs.showTrayIcon);
|
|
|
141 |
if (!prefs.showTrayIcon) {
|
|
|
142 |
prefs.closeToTray = false;
|
|
|
143 |
}
|
|
|
144 |
closeToTrayCB->setEnabled(showTrayIconCB->checkState());
|
141 |
closeToTrayCB->setChecked(prefs.closeToTray);
|
145 |
closeToTrayCB->setChecked(prefs.closeToTray);
|
142 |
showTempFileWarningCB->setChecked(prefs.showTempFileWarning == -1);
|
146 |
showTempFileWarningCB->setChecked(prefs.showTempFileWarning == -1);
|
143 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
147 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
144 |
switch (prefs.previewPlainPre) {
|
148 |
switch (prefs.previewPlainPre) {
|
145 |
case PrefsPack::PP_BR:
|
149 |
case PrefsPack::PP_BR:
|
|
... |
|
... |
572 |
#endif
|
576 |
#endif
|
573 |
}
|
577 |
}
|
574 |
|
578 |
|
575 |
void UIPrefsDialog::on_showTrayIconCB_clicked()
|
579 |
void UIPrefsDialog::on_showTrayIconCB_clicked()
|
576 |
{
|
580 |
{
|
|
|
581 |
if (!showTrayIconCB->checkState()) {
|
|
|
582 |
closeToTrayCB->setChecked(false);
|
|
|
583 |
}
|
577 |
closeToTrayCB->setEnabled(showTrayIconCB->checkState());
|
584 |
closeToTrayCB->setEnabled(showTrayIconCB->checkState());
|
578 |
}
|
585 |
}
|
579 |
|
586 |
|
580 |
/**
|
587 |
/**
|
581 |
* Browse to add another index.
|
588 |
* Browse to add another index.
|