Skip to content

Commit

Permalink
Revert 68071
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Dec 27, 2024
1 parent 616b746 commit ace5bc7
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions object_creator/creator_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
#include <QtWidgets/qsplashscreen.h>
#include <QtGui/qpainter.h>

//Required by the sigaction function in the exit_handler
#if defined(_WIN32)
#include "platform_win.h"
#else
#include <csignal>
#endif

#ifdef _WIN32
#include <QtCore/QtPlugin>
Q_IMPORT_PLUGIN( QWindowsIntegrationPlugin );
Expand All @@ -52,20 +45,7 @@ void exit_handler( int s )

catacurses::endwin();

// As suggested by https://github.com/CleverRaven/Cataclysm-DDA/pull/67893
#if !defined(_WIN32)
if( s == 2 ) {
struct sigaction sigIntHandler;
sigIntHandler.sa_handler = SIG_DFL;
sigemptyset( &sigIntHandler.sa_mask );
sigIntHandler.sa_flags = 0;
sigaction( SIGINT, &sigIntHandler, nullptr );
kill( getpid(), s );
} else
#endif
{
exit( exit_status );
}
exit( exit_status );
}
inp_mngr.set_timeout( old_timeout );
}
Expand Down

0 comments on commit ace5bc7

Please sign in to comment.