Commits

Anonymous committed 1f1dc0b

first try at fixing the “crash at logout” bug.

Comments (0)

Files changed (1)

 - make it show faster. -done
 - add option --only-daemon to only start the daemon without showing the GUI -done
 - right-click on center opens a general config dialog. -todo
-- a general config dialog. -todo
+- a general config dialog. -done
 - first run of new version shows image as usage guide. -todo
 """
 __ideas__ = """
 from PyKDE4.kdecore import ki18n, KAboutData
 
 # KApplication for basics
-from PyKDE4.kdeui import KUniqueApplication
+from PyKDE4.kdeui import KUniqueApplication #, KSessionManager # for handling sessions by hand, should quit not work.
 
 # SIGNALs and SLOTs for a clean shutdown. 
 from PyQt4.QtCore import SIGNAL, SLOT
         self.rad = Rad()
         self.connect(self, SIGNAL("shutDown()"), self.close)
         self.connect(self, SIGNAL("shutDown()"), self.quit)
+        self.connect(self.rad, SIGNAL("queryClose()"), self.close)
+
+    def quit(self):
+        """Quit the program: close the rad, then quit."""
+        self.close()
+        super(KUniqueCaller, self).quit()
 
     def close(self):
         """Slot for closing the rad."""