bugfix - change QApplication to macro QAPPLICATION_CLASS (#34)

Bug fix - changed QApplication to macro QCoreApplication when invoking QApplication::instance()
This commit is contained in:
BG4444 2017-08-20 20:30:29 +03:00 committed by Itay Grudev
parent 00a0da8b00
commit ca149f4436

View File

@ -240,7 +240,7 @@ void SingleApplicationPrivate::connectToPrimary( int msecs, char connectionType
void SingleApplicationPrivate::terminate( int signum ) void SingleApplicationPrivate::terminate( int signum )
{ {
delete ((SingleApplication*)QApplication::instance())->d_ptr; delete ((SingleApplication*)QCoreApplication::instance())->d_ptr;
::exit( 128 + signum ); ::exit( 128 + signum );
} }
#endif #endif