Debian Codegraph @

debian/patches/disable_update_search.patch

raw symbols SCIP
1 Author: Daniel Leidert <[email protected]>
2 Description: Disable the automatic update search.
3 The patch is not perfect. It might not work if a user already has
4 a different user setting for checking or ignoring updates. The
5 patch also makes use of checkForUpdates() to avoid code duplication.
6 Last-Updated: 2020-05-04
7 Forwarded: not-needed
8
9 --- a/window.cpp
10 +++ b/window.cpp
11 @@ -1346,7 +1346,7 @@
12 helpMenu->addAction(QWhatsThis::createAction(this));
13 helpMenu->addAction(tr("About"), this, SLOT(aboutXLE()));
14 helpMenu->addAction(tr("About &Qt"), qApp, SLOT(aboutQt()));
15 - helpMenu->addAction("Check for New Versions Now",this,SLOT(checkForUpdates()));
16 + //helpMenu->addAction("Check for New Versions Now",this,SLOT(checkForUpdates()));
17 helpMenu->addAction("Show Key Bindings", this, SLOT(hereAreMyKeys()));
18 }
19
20 @@ -1531,15 +1531,16 @@
21 }
22 darkEdit();
23 einstellung->endGroup();
24 - int ignore=QMessageBox::Yes;
25 + int ignore=QMessageBox::No;
26 einstellung->beginGroup("Updates");
27 if (einstellung->contains("IgnoreUpdates"))
28 ignore=einstellung->value("IgnoreUpdates").toInt();
29 einstellung->endGroup();
30 net = new QNetworkAccessManager(this);
31 if (ignore!=QMessageBox::No){
32 - connect(net, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
33 - reply = net->get(QNetworkRequest(QUrl("http://shelxle.org/shelx/revision.php")));
34 + checkForUpdates();
35 + //connect(net, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
36 + //reply = net->get(QNetworkRequest(QUrl("http://shelxle.org/shelx/revision.php")));
37 }
38 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39