1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 13:39:40 +00:00

Fix SDL eating SIGINT signals in the launcher (Fixes #2328)

This commit is contained in:
scrawl 2015-02-01 16:19:05 +01:00
parent 6d097fbfbd
commit 9825b68dfb

View file

@ -1,4 +1,5 @@
#include <iostream>
#include <csignal>
#include <QApplication>
#include <QTextCodec>
@ -26,6 +27,8 @@ int main(int argc, char *argv[])
qDebug() << "SDL_Init failed: " << QString::fromStdString(SDL_GetError());
return 0;
}
signal(SIGINT, SIG_DFL); // We don't want to use the SDL event loop in the launcher,
// so reset SIGINT which SDL wants to redirect to an SDL_Quit event.
QApplication app(argc, argv);