QTfrontend/HWApplication.cpp
changeset 8708 6354b01d5500
parent 8610 6d6b5b529890
child 8710 8d0a150d42c2
--- a/QTfrontend/HWApplication.cpp	Sun Mar 10 00:40:00 2013 +0100
+++ b/QTfrontend/HWApplication.cpp	Sun Mar 10 01:02:15 2013 +0100
@@ -21,10 +21,20 @@
 
 #include "hwform.h"
 
+#if !defined(Q_WS_WIN)
+void terminateFrontend(int signal)
+{
+    Q_UNUSED(signal);
+    QCoreApplication::exit(0);
+}
+#endif
+
 HWApplication::HWApplication(int &argc,  char **argv):
     QApplication(argc, argv)
 {
-
+#if !defined(Q_WS_WIN)
+    signal(SIGINT, &terminateFrontend);
+#endif
 }
 
 bool HWApplication::event(QEvent *event)