Make controller.cpp compile on windows again

This commit is contained in:
Torrie Fischer
2021-04-02 17:22:44 -07:00
committed by Tobias Fella
parent b268e82e0e
commit eab5a43a2e

View File

@@ -86,6 +86,7 @@ Controller::Controller(QObject *parent)
NeoChatConfig::self()->save();
});
#ifndef Q_OS_WINDOWS
// Setup Unix signal handlers
const auto unixExitHandler = [](int /*sig*/) -> void {
QCoreApplication::quit();
@@ -107,6 +108,7 @@ Controller::Controller(QObject *parent)
for (auto sig : quitSignals) {
sigaction(sig, &sa, nullptr);
}
#endif
}
Controller::~Controller()