1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Author: Tom Jampen <tom@cryptography.ch>
Description:
This patch sets the auto update configuration value to false by default and
disables the update checkbox and the corresponding time interval.
diff -Naurp a/configdialog.ui b/configdialog.ui
--- a/configdialog.ui 2014-08-05 16:03:45.413795999 +0200
+++ b/configdialog.ui 2014-08-05 16:04:13.850880912 +0200
@@ -548,6 +548,9 @@
<property name="text">
<string>Automatically check every</string>
</property>
+ <property name="checkable">
+ <bool>false</bool>
+ </property>
</widget>
</item>
<item>
@@ -561,6 +564,9 @@
<property name="value">
<number>7</number>
</property>
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
diff -Naurp a/configmanager.cpp b/configmanager.cpp
--- a/configmanager.cpp 2014-08-05 16:03:30.121217132 +0200
+++ b/configmanager.cpp 2014-08-05 16:04:13.854881069 +0200
@@ -397,7 +397,7 @@ ConfigManager::ConfigManager(QObject *pa
registerOption("Thesaurus/Database", &thesaurus_database, "<dic not found>", &pseudoDialog->comboBoxThesaurusFileName);
//updates
- registerOption("Update/AutoCheck", &autoUpdateCheck, true, &pseudoDialog->checkBoxAutoUpdateCheck);
+ registerOption("Update/AutoCheck", &autoUpdateCheck, false, &pseudoDialog->checkBoxAutoUpdateCheck);
registerOption("Update/AutoCheckInvervalDays", &autoUpdateCheckIntervalDays, 7, &pseudoDialog->spinBoxAutoUpdateCheckIntervalDays);
registerOption("Update/LastCheck", &lastUpdateCheck, QDateTime());
|