summaryrefslogtreecommitdiff
path: root/net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch
blob: 353278d09d31798804f0d501cd0844ac2ac86de7 (plain)
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
--- clipgrab-3.4.2/clipgrab.cpp
+++ clipgrab-3.4.2/clipgrab.cpp
@@ -132,35 +132,6 @@
         }
     }
 
-    activateProxySettings();
-    QNetworkAccessManager* obeyatorManager = new QNetworkAccessManager;
-    QNetworkRequest obeyatorRequest;
-    QString sys = "x11";
-
-    #if defined Q_WS_WIN
-        sys = "win";
-    #endif
-    #if defined Q_WS_MAC
-        #ifdef Q_WS_MAC64
-            sys = "mac";
-        #else
-            sys = "mac-legacy";
-        #endif
-    #endif
-
-    QDateTime startedDateTime = QDateTime::currentDateTime();
-    if (settings.value("firstStarted", 0).toInt() == 0)
-    {
-        settings.setValue("firstStarted", startedDateTime.toTime_t());
-    }
-    if (settings.value("firstStarted-" + version, 0) == 0)
-    {
-        settings.setValue("firstStarted-" + version, startedDateTime.toTime_t());
-    }
-    obeyatorRequest.setUrl("http://clipgrab.de/or.php?version=" + version +"&lang="+QLocale::system().name().split("_")[0]+"&sys="+sys+"&current=" + settings.value("firstStarted-" + version, startedDateTime.toTime_t()).toString()+"&first="+settings.value("firstStarted", startedDateTime.toTime_t()).toString());
-    obeyatorManager->get(obeyatorRequest);
-    connect(obeyatorManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(obey(QNetworkReply*)));
-
     connect(QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(clipboardChanged()));
 
 }