texstudio/texstudio-disable-update-check.patch

52 lines
2.0 KiB
Diff
Raw Normal View History

2018-02-11 06:54:33 +00:00
From 6647a0026bb16993707350d4829920e78918fb9e Mon Sep 17 00:00:00 2001
2015-12-16 19:39:58 +00:00
From: hannes <hannes@fedoraproject.org>
2018-02-11 06:54:33 +00:00
Date: Sun, 11 Feb 2018 07:45:11 +0100
Subject: [PATCH 3/3] update fix
2015-12-16 19:39:58 +00:00
---
2018-02-11 06:54:33 +00:00
src/configdialog.ui | 6 ++++++
src/configmanager.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
2015-12-16 19:39:58 +00:00
2018-02-11 06:54:33 +00:00
diff --git a/src/configdialog.ui b/src/configdialog.ui
index 0f3cbe6..1b11b92 100644
--- a/src/configdialog.ui
+++ b/src/configdialog.ui
2018-11-26 19:14:23 +00:00
@@ -584,14 +584,20 @@
</property>
2015-12-16 19:39:58 +00:00
<property name="value">
2018-02-11 06:54:33 +00:00
<number>7</number>
2018-11-26 19:14:23 +00:00
- </property>
+ </property>
+ <property name="readOnly">
2015-12-16 19:39:58 +00:00
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item row="0" column="0">
2018-11-26 19:14:23 +00:00
<widget class="QCheckBox" name="checkBoxAutoUpdateCheck">
2015-12-16 19:39:58 +00:00
<property name="text">
<string>Automatically check every</string>
2018-11-26 19:14:23 +00:00
- </property>
+ </property>
+ <property name="checkable">
2018-02-11 06:54:33 +00:00
+ <bool>false</bool>
+ </property>
2015-12-16 19:39:58 +00:00
</widget>
</item>
<item row="0" column="5">
2018-02-11 06:54:33 +00:00
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
2018-11-26 19:14:23 +00:00
index afd54b7..e2e9629 100644
2018-02-11 06:54:33 +00:00
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
2018-11-26 19:14:23 +00:00
@@ -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);
2015-12-16 19:39:58 +00:00
//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());