FEATURE: Added option to disable program exit confirmation

This commit is contained in:
Christophe Dumez
2011-02-27 09:43:58 +00:00
parent 8b9971003d
commit 37cd9c5b7b
36 changed files with 2199 additions and 2034 deletions

View File

@@ -172,7 +172,7 @@
<x>0</x>
<y>0</y>
<width>499</width>
<height>459</height>
<height>487</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
@@ -407,6 +407,16 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkProgramExitConfirm">
<property name="text">
<string>Ask for program exit confirmation</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>

View File

@@ -130,6 +130,7 @@ options_imp::options_imp(QWidget *parent):
connect(checkMinimizeToSysTray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(checkStartMinimized, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(checkShowSplash, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(checkProgramExitConfirm, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(checkPreventFromSuspend, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
// Downloads tab
connect(textSavePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
@@ -323,6 +324,7 @@ void options_imp::saveOptions(){
pref.setMinimizeToTray(minimizeToTray());
pref.setStartMinimized(startMinimized());
pref.setSplashScreenDisabled(isSlashScreenDisabled());
pref.setConfirmOnExit(checkProgramExitConfirm->isChecked());
pref.setPreventFromSuspend(preventFromSuspend());
// End General preferences
@@ -467,6 +469,7 @@ void options_imp::loadOptions(){
checkMinimizeToSysTray->setChecked(pref.minimizeToTray());
checkStartMinimized->setChecked(pref.startMinimized());
}
checkProgramExitConfirm->setChecked(pref.confirmOnExit());
checkPreventFromSuspend->setChecked(pref.preventFromSuspend());
// End General preferences
// Downloads preferences