Make controller.cpp compile on windows again
This commit is contained in:
committed by
Tobias Fella
parent
b268e82e0e
commit
eab5a43a2e
@@ -86,6 +86,7 @@ Controller::Controller(QObject *parent)
|
|||||||
NeoChatConfig::self()->save();
|
NeoChatConfig::self()->save();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#ifndef Q_OS_WINDOWS
|
||||||
// Setup Unix signal handlers
|
// Setup Unix signal handlers
|
||||||
const auto unixExitHandler = [](int /*sig*/) -> void {
|
const auto unixExitHandler = [](int /*sig*/) -> void {
|
||||||
QCoreApplication::quit();
|
QCoreApplication::quit();
|
||||||
@@ -107,6 +108,7 @@ Controller::Controller(QObject *parent)
|
|||||||
for (auto sig : quitSignals) {
|
for (auto sig : quitSignals) {
|
||||||
sigaction(sig, &sa, nullptr);
|
sigaction(sig, &sa, nullptr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller::~Controller()
|
Controller::~Controller()
|
||||||
|
|||||||
Reference in New Issue
Block a user