texstudio/texstudio-disable-update-ch...

52 lines
2.0 KiB
Diff

From 6647a0026bb16993707350d4829920e78918fb9e Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
Date: Sun, 11 Feb 2018 07:45:11 +0100
Subject: [PATCH 3/3] update fix
---
src/configdialog.ui | 6 ++++++
src/configmanager.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/configdialog.ui b/src/configdialog.ui
index 0f3cbe6..1b11b92 100644
--- a/src/configdialog.ui
+++ b/src/configdialog.ui
@@ -584,14 +584,20 @@
</property>
<property name="value">
<number>7</number>
- </property>
+ </property>
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkBoxAutoUpdateCheck">
<property name="text">
<string>Automatically check every</string>
- </property>
+ </property>
+ <property name="checkable">
+ <bool>false</bool>
+ </property>
</widget>
</item>
<item row="0" column="5">
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index afd54b7..e2e9629 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -485,7 +485,7 @@ ConfigManager::ConfigManager(QObject *parent): QObject (parent),
registerOption("Macros/RepositoryURL", &URLmacroRepository, "https://api.github.com/repos/texstudio-org/texstudio-macro/contents/", nullptr);
//updates
- registerOption("Update/AutoCheck", &autoUpdateCheck, true, &pseudoDialog->checkBoxAutoUpdateCheck);
+ registerOption("Update/AutoCheck", &autoUpdateCheck, false, &pseudoDialog->checkBoxAutoUpdateCheck);
registerOption("Update/UpdateLevel", &updateLevel, 0, &pseudoDialog->comboBoxUpdateLevel);
registerOption("Update/AutoCheckInvervalDays", &autoUpdateCheckIntervalDays, 7, &pseudoDialog->spinBoxAutoUpdateCheckIntervalDays);
registerOption("Update/LastCheck", &lastUpdateCheck, QDateTime());