Skip to content

Commit

Permalink
bugfix - change QApplication to macro QAPPLICATION_CLASS (#34)
Browse files Browse the repository at this point in the history
Bug fix - changed QApplication to macro QCoreApplication when invoking QApplication::instance()
  • Loading branch information
BG4444 authored and itay-grudev committed Aug 20, 2017
1 parent 00a0da8 commit ca149f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singleapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void SingleApplicationPrivate::connectToPrimary( int msecs, char connectionType

void SingleApplicationPrivate::terminate( int signum )
{
delete ((SingleApplication*)QApplication::instance())->d_ptr;
delete ((SingleApplication*)QCoreApplication::instance())->d_ptr;
::exit( 128 + signum );
}
#endif
Expand Down

0 comments on commit ca149f4

Please sign in to comment.