diff options
Diffstat (limited to 'net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch')
-rw-r--r-- | net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch b/net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch new file mode 100644 index 00000000000..353278d09d3 --- /dev/null +++ b/net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch @@ -0,0 +1,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+"¤t=" + 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())); + + } |