Add quit command

This commit is contained in:
Florian Bruhin 2014-01-16 17:45:12 +01:00
parent ef9a5d569e
commit 7c866f5014
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ def main():
mw.status.cmd.returnPressed.connect(lambda: cp.parse(mw.status.cmd.text()))
cmds.cmd_dict['openurl'].connect(mw.tabs.openurl)
cmds.cmd_dict['tabopen'].connect(mw.tabs.tabopen)
cmds.cmd_dict['quit'].connect(QApplication.closeAllWindows) # FIXME
mw.show()
sys.exit(app.exec_())

View File

@ -55,4 +55,9 @@ class TabOpenCmd(Command):
name = 'tabopen'
signal = pyqtSignal(str)
class QuitCmd(Command):
nargs = 0
name = 'quit'
signal = pyqtSignal()
register_all()