Changeset 42 for gui/preferences_dialog.cpp
- Timestamp:
- 01/07/08 16:25:46 (4 years ago)
- File:
-
- 1 edited
-
gui/preferences_dialog.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gui/preferences_dialog.cpp
r30 r42 7 7 8 8 connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonPressed(QAbstractButton *))); 9 10 9 loadSettings(); 11 10 } … … 17 16 passwordLineEdit->setText(settings.value("connection/password", "").toString()); 18 17 systemTrayCheckBox->setChecked(settings.value("systemtray").toBool()); 18 if (settings.value("systemtray").toBool()) { 19 systemTrayPopup->setChecked(settings.value("systemtrayPopup").toBool()); 20 } else { 21 systemTrayPopup->setEnabled(false); 22 } 19 23 } 20 24 … … 32 36 settings.setValue("connection/password", passwordLineEdit->text()); 33 37 settings.setValue("systemtray", systemTrayCheckBox->isChecked()); 38 if (systemTrayCheckBox->isChecked()) { 39 settings.setValue("systemtrayPopup", systemTrayPopup->isChecked()); 40 } else { 41 settings.setValue("systemtrayPopup", false); 42 } 34 43 emit systemTraySet(systemTrayCheckBox->isChecked()); 35 44 break;
Note: See TracChangeset
for help on using the changeset viewer.
