diff options
Diffstat (limited to 'sharetray.cpp.patch')
-rw-r--r-- | sharetray.cpp.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sharetray.cpp.patch b/sharetray.cpp.patch new file mode 100644 index 000000000000..b85f2bdf4b13 --- /dev/null +++ b/sharetray.cpp.patch @@ -0,0 +1,22 @@ +diff -Nur x2godesktopsharing-3.1.1.2.orig/sharetray.cpp x2godesktopsharing-3.1.1.2/sharetray.cpp +--- x2godesktopsharing-3.1.1.2.orig/sharetray.cpp 2015-03-06 15:11:16.000000000 +1100 ++++ x2godesktopsharing-3.1.1.2/sharetray.cpp 2016-09-01 16:32:39.112356875 +1000 +@@ -93,8 +93,8 @@ + { + QString line = in.readLine(); + file.close(); +- if ( abs ( line.toUInt() - +- QDateTime::currentDateTime().toTime_t() ) <5 ) ++ if ( abs ( int(line.toUInt() - ++ QDateTime::currentDateTime().toTime_t()) ) <5 ) + { + + QString message=QString ( +@@ -174,6 +174,7 @@ + SLOT ( slotStopSharing() ) ); + + actStop->setEnabled ( false ); ++ slotStartSharing(); + + // unix signals (TERM, INT) are piped into a unix socket and will raise Qt events + if (::socketpair(AF_UNIX, SOCK_STREAM, 0, sigkeybintFd)) |