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