mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 17:02:06 +08:00
bugfix - change QApplication to macro QAPPLICATION_CLASS (#34)
Bug fix - changed QApplication to macro QCoreApplication when invoking QApplication::instance()
This commit is contained in:
parent
00a0da8b00
commit
ca149f4436
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user