Fix windows build
This commit is contained in:
parent
cd1fc258b6
commit
9e271ef9fc
|
@ -1,4 +1,4 @@
|
|||
if(WIN32)
|
||||
add_snore_plugin(snoretoast SOURCES snoretoast.cpp TYPE backend)
|
||||
install(FILES SnoreToast.exe ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
install(FILES SnoreToast.exe DESTINATION bin)
|
||||
endif(WIN32)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "libsnore/plugins/snorebackend.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QApplication>
|
||||
#include <QGuiApplication>
|
||||
#include <QSysInfo>
|
||||
|
||||
#include <windows.h>
|
||||
|
@ -131,6 +131,6 @@ QProcess *SnoreToast::createProcess(Notification noti)
|
|||
}
|
||||
p->deleteLater();
|
||||
});
|
||||
connect(qApp, &QApplication::aboutToQuit, p, &QProcess::kill);
|
||||
connect(qApp, &QGuiApplication::aboutToQuit, p, &QProcess::kill);
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue