9 Commits

Author SHA1 Message Date
Philippe Steinmann
a8dda66d77 QtSingleApplication: compiler warning about enum comparison
Compiler outputs a warning because of comparison between
QLocalSocket::LocalSocketState and QAbstractSocket::SocketState.

Change-Id: Idbae5c3c32a32324e07972e0bb0808fc40ef7624
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2017-09-14 14:21:57 +00:00
Friedemann Kleint
1fca9c330d QtSingleApplication: Bail out of read loop when peer disconnects
When messages are received while the event loop is inactive
(for example, when locked by a native dialog), it can happen
that a new connection is triggered which then goes into
unconnected state when the peer terminates. Add a check
to the loop and discard the connection in that case.

Task-number: QTSOLBUG-193
Change-Id: I7d5502cb411d2b967bd06fe8734b97fee54b7d18
Reviewed-by: Joni Poikelin <joni.poikelin@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2017-05-10 07:36:24 +00:00
Jan Kundrát
ad9bc4600c QtSingleApplication: Fix build with Qt 5.5
...due to the QDataStream include cleanup.

Change-Id: I159b28a82abc9956802967d96b5b12f5fd46e961
Reviewed-by: Heiko Becker <heirecka@exherbo.org>
Reviewed-by: Davide Pesavento <davidepesa@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-06-29 13:40:53 +00:00
Nils Jeisecke
8fd81b2a0d QtSingleApplication: Make sure client reads ack data before disconnecting
This solves the problem on Windows that sometimes a second application
instance is started.

Task-number: QTSOLBUG-160
Change-Id: I6586e2ccfbc1d640bcf42bc3bdbeed32a981d842
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-04-09 13:53:20 +02:00
Sergio Ahumada
67a72e3bc2 Update copyright year in Digia's license headers
Change-Id: I4520cf54a4c8d6ff6119dc3762d9aeac42b66af5
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
2013-01-10 23:18:32 +01:00
Jonathan Liu
534707f528 Remove module prefix from includes
The module prefix is not needed and removing it adds compatibility
with Qt 5 which has classes moved into different modules.

Change-Id: I20823be670d78ba6cc8eb0e5de1f4f3b6fa2edb6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2012-12-29 20:20:47 +01:00
Sergio Ahumada
bae9ef96b7 Change copyright from Nokia to Digia
Change-Id: Ie75877290e0bce06c8b5a24ed664e8aceaf2cac0
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2012-12-27 14:15:40 +01:00
Jonathan Liu
fb7bc42bfc Fix '::getuid' has not been declared compile error
Task-number: QTSOLBUG-102

Change-Id: Idd30a013e4b1d113531e2a90c4b15924ca005788
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-12-21 08:32:22 +01:00
aavit
5019ece540 Long live the Qt Solutions archive!
This commit adds the contents of distribution packages of the
relevant subset of the Qt Solutions components, generated
from the last versions in Perforce.
2010-10-06 12:57:48 +02:00