File tree Expand file tree Collapse file tree 5 files changed +17
-6
lines changed
third_party_src/qt_solutions Expand file tree Collapse file tree 5 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Version 1.0.9.1:
9
9
- updated KSqueezedTextLabel to KF5
10
10
- improved DiskSpaceWidget layout
11
11
- added icon pixmap to MessageBox
12
+ - updated qt-solutions
12
13
- Fixed bugs:
13
14
- fixed CoreApplicationBase::GetSupportedLanguageInfos()
14
15
- fixed meta type issues in qt solutions integration
Original file line number Diff line number Diff line change 117
117
118
118
119
119
#if (CPPDEVTK_PLATFORM_WINDOWS)
120
+ # ifndef ZLIB_WINAPI
121
+ # define ZLIB_WINAPI
122
+ # endif
120
123
# ifdef CPPDEVTK_SHARED
121
- # ifndef ZLIB_WINAPI
122
- # define ZLIB_WINAPI
123
- # endif
124
-
125
124
# ifndef ZLIB_DLL
126
125
# define ZLIB_DLL
127
126
# endif
Original file line number Diff line number Diff line change @@ -184,8 +184,17 @@ void QtLocalPeer::receiveConnection()
184
184
if (!socket)
185
185
return ;
186
186
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 ;
188
195
socket->waitForReadyRead ();
196
+ }
197
+
189
198
QDataStream ds (socket);
190
199
QByteArray uMsg;
191
200
quint32 remaining;
Original file line number Diff line number Diff line change @@ -862,11 +862,13 @@ int QtServiceBase::exec()
862
862
d_ptr->controller .sendCommand (code);
863
863
return 0 ;
864
864
} 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 "
866
866
" \t -i(nstall) [account] [password]\t : Install the service, optionally using given account and password\n "
867
867
" \t -u(ninstall)\t : Uninstall the service.\n "
868
868
" \t -e(xec)\t\t : Run as a regular application. Useful for debugging.\n "
869
869
" \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 "
870
872
" \t -c(ommand) num\t : Send command code num to the service.\n "
871
873
" \t -v(ersion)\t : Print version and status information.\n "
872
874
" \t -h(elp) \t : Show this help\n "
You can’t perform that action at this time.
0 commit comments