makes the Qt application quit upong sigint
authorstack <stack@inventati.org>
Sun, 8 Jul 2012 18:19:50 +0000 (20:19 +0200)
committerstack <stack@inventati.org>
Sun, 8 Jul 2012 18:19:50 +0000 (20:19 +0200)
main.py

diff --git a/main.py b/main.py
index 2c187cb..58ac693 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -33,6 +33,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 """
 
+
+import signal
+
 from profhandler import ProfHandler
 from gui import Gui
 from PyQt4 import QtGui
@@ -40,6 +43,8 @@ from PyQt4 import QtGui
 from settings import appconf
 
 if __name__ == '__main__':
+    #makes the application quit upon sigint 
+    signal.signal(signal.SIGINT, signal.SIG_DFL)
     #Application init
     prManager = ProfHandler()