Skip to content

Commit f82c2ac

Browse files
- updated qt-solutions
- zlib winapi in static build
1 parent 3caf7cf commit f82c2ac

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Version 1.0.9.1:
99
- updated KSqueezedTextLabel to KF5
1010
- improved DiskSpaceWidget layout
1111
- added icon pixmap to MessageBox
12+
- updated qt-solutions
1213
- Fixed bugs:
1314
- fixed CoreApplicationBase::GetSupportedLanguageInfos()
1415
- fixed meta type issues in qt solutions integration

include/cppdevtk/config/third_party.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@
117117

118118

119119
#if (CPPDEVTK_PLATFORM_WINDOWS)
120+
# ifndef ZLIB_WINAPI
121+
# define ZLIB_WINAPI
122+
# endif
120123
# ifdef CPPDEVTK_SHARED
121-
# ifndef ZLIB_WINAPI
122-
# define ZLIB_WINAPI
123-
# endif
124-
125124
# ifndef ZLIB_DLL
126125
# define ZLIB_DLL
127126
# endif

src/util/qt_local_peer.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,17 @@ void QtLocalPeer::receiveConnection()
184184
if (!socket)
185185
return;
186186

187-
while (socket->bytesAvailable() < (int)sizeof(quint32))
187+
while (true) {
188+
if (socket->state() == QLocalSocket::UnconnectedState) {
189+
qWarning("QtLocalPeer: Peer disconnected");
190+
delete socket;
191+
return;
192+
}
193+
if (socket->bytesAvailable() >= qint64(sizeof(quint32)))
194+
break;
188195
socket->waitForReadyRead();
196+
}
197+
189198
QDataStream ds(socket);
190199
QByteArray uMsg;
191200
quint32 remaining;

src/util/qt_service.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,13 @@ int QtServiceBase::exec()
862862
d_ptr->controller.sendCommand(code);
863863
return 0;
864864
} else if (a == QLatin1String("-h") || a == QLatin1String("-help")) {
865-
printf("\n%s -[i|u|e|s|v|h]\n"
865+
printf("\n%s -[i|u|e|t|p|r|c|v|h]\n"
866866
"\t-i(nstall) [account] [password]\t: Install the service, optionally using given account and password\n"
867867
"\t-u(ninstall)\t: Uninstall the service.\n"
868868
"\t-e(xec)\t\t: Run as a regular application. Useful for debugging.\n"
869869
"\t-t(erminate)\t: Stop the service.\n"
870+
"\t-p(ause)\t: Pause the service.\n"
871+
"\t-r(esume)\t: Resume a paused service.\n"
870872
"\t-c(ommand) num\t: Send command code num to the service.\n"
871873
"\t-v(ersion)\t: Print version and status information.\n"
872874
"\t-h(elp) \t: Show this help\n"
Binary file not shown.

0 commit comments

Comments
 (0)