Kim Kirwan fe2071c4b2 Remove Execute Permissions from Non-Executables
No source code changes.
Removed execute permissions from 7 files total:
*.pro and *.pri files (4)
main.cpp (2)
*.txt file (1)

Signed-off-by: Kim Kirwan <Kim@KimKirwan.com>
2019-11-11 04:22:22 -06:00

26 lines
582 B
C++

#include <singleapplication.h>
#include "messagereceiver.h"
int main(int argc, char *argv[])
{
// Allow secondary instances
SingleApplication app( argc, argv, true );
MessageReceiver msgReceiver;
// If this is a secondary instance
if( app.isSecondary() ) {
app.sendMessage( app.arguments().join(' ').toUtf8() );
return 0;
} else {
QObject::connect(
&app,
&SingleApplication::receivedMessage,
&msgReceiver,
&MessageReceiver::receivedMessage
);
}
return app.exec();
}