Skip to content

Commit

Permalink
Remove exit from toolbar, use more standard Ctrl+Q
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTimeWalker committed Mar 9, 2021
1 parent ea5ac43 commit 330978d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions qt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ def __init__(self, config, appInstance, qapp):
self.btnShutdown.setEnabled(self.shutdown.canShutdown())
self.btnShutdown.toggled.connect(self.btnShutdownToggled)

self.btnQuit = self.mainToolbar.addAction(icon.EXIT, _('Exit'))
self.btnQuit.setShortcut(QKeySequence(Qt.CTRL + Qt.Key_W))
self.menuSnapshot = self.menuBar().addMenu(_('&Snapshot'))
self.btnQuit = self.menuSnapshot.addAction(icon.EXIT, _('Exit'))
self.btnQuit.setShortcut(QKeySequence(Qt.CTRL + Qt.Key_Q))
self.btnQuit.triggered.connect(self.close)

empty = QWidget(self)
Expand Down Expand Up @@ -262,8 +263,6 @@ def __init__(self, config, appInstance, qapp):

filesLayout.addWidget(self.filesViewToolbar)

#menubar
self.menuSnapshot = self.menuBar().addMenu(_('&Snapshot'))
self.menuSnapshot.addAction(self.btnTakeSnapshot)
self.menuSnapshot.addAction(self.btnUpdateSnapshots)
self.menuSnapshot.addAction(self.btnNameSnapshot)
Expand Down

0 comments on commit 330978d

Please sign in to comment.