1 |
xmw 14/06/05 22:36:10 |
2 |
|
3 |
Added: clipgrab-3.4.2-obey.patch |
4 |
Log: |
5 |
Version bump |
6 |
|
7 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 62EEF090) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/clipgrab/files/clipgrab-3.4.2-obey.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: clipgrab-3.4.2-obey.patch |
16 |
=================================================================== |
17 |
--- clipgrab-3.4.2/clipgrab.cpp |
18 |
+++ clipgrab-3.4.2/clipgrab.cpp |
19 |
@@ -132,35 +132,6 @@ |
20 |
} |
21 |
} |
22 |
|
23 |
- activateProxySettings(); |
24 |
- QNetworkAccessManager* obeyatorManager = new QNetworkAccessManager; |
25 |
- QNetworkRequest obeyatorRequest; |
26 |
- QString sys = "x11"; |
27 |
- |
28 |
- #if defined Q_WS_WIN |
29 |
- sys = "win"; |
30 |
- #endif |
31 |
- #if defined Q_WS_MAC |
32 |
- #ifdef Q_WS_MAC64 |
33 |
- sys = "mac"; |
34 |
- #else |
35 |
- sys = "mac-legacy"; |
36 |
- #endif |
37 |
- #endif |
38 |
- |
39 |
- QDateTime startedDateTime = QDateTime::currentDateTime(); |
40 |
- if (settings.value("firstStarted", 0).toInt() == 0) |
41 |
- { |
42 |
- settings.setValue("firstStarted", startedDateTime.toTime_t()); |
43 |
- } |
44 |
- if (settings.value("firstStarted-" + version, 0) == 0) |
45 |
- { |
46 |
- settings.setValue("firstStarted-" + version, startedDateTime.toTime_t()); |
47 |
- } |
48 |
- 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()); |
49 |
- obeyatorManager->get(obeyatorRequest); |
50 |
- connect(obeyatorManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(obey(QNetworkReply*))); |
51 |
- |
52 |
connect(QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(clipboardChanged())); |
53 |
|
54 |
} |