don't crash on incoming notifications
this needs to be a QApplication as it uses widgets
This commit is contained in:
parent
809c1238cf
commit
58cfa83bcc
1 changed files with 5 additions and 6 deletions
|
@ -24,7 +24,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include <QSocketNotifier>
|
||||
#include <QGuiApplication>
|
||||
#include <QApplication>
|
||||
|
||||
#include <KDBusService>
|
||||
|
||||
|
@ -59,11 +59,10 @@ void initializeTermHandlers(QCoreApplication* app, Daemon* daemon)
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
QCoreApplication::setApplicationName("kdeconnect");
|
||||
QCoreApplication::setApplicationVersion("0.1");
|
||||
QCoreApplication::setOrganizationDomain("kde.org");
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
QApplication app(argc, argv);
|
||||
app.setApplicationName("kdeconnect");
|
||||
app.setApplicationVersion("0.1");
|
||||
app.setOrganizationDomain("kde.org");
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
|
||||
KDBusService dbusService(KDBusService::Unique);
|
||||
|
|
Loading…
Reference in a new issue