def debconffilter_done(self, dbfilter): if BaseFrontend.debconffilter_done(self, dbfilter): if self.mainloop.is_running(): self.mainloop.quit() return True else: return False
def debconffilter_done (self, dbfilter): # processing events here prevents GUI from hanging until mouse moves (LP #556376) self.app.processEvents() ##FIXME in Qt 4 without this disconnect it calls watch_debconf_fd_helper_read once more causing ## a crash after the keyboard stage. No idea why. try: self.socketNotifierRead.activated.disconnect(self.watch_debconf_fd_helper_read) except Exception: pass # May not be connected if it's a trivial dbfilter if BaseFrontend.debconffilter_done(self, dbfilter): self.app.exit() return True else: return False