diff --git a/LICENCE.txt b/LICENSE.txt similarity index 100% rename from LICENCE.txt rename to LICENSE.txt diff --git a/Qt/Windows.py b/Qt/Windows.py index ec54c6c..9a68ce2 100644 --- a/Qt/Windows.py +++ b/Qt/Windows.py @@ -114,6 +114,11 @@ class Timeline: findEntityAction.setStatusTip("Find entity and open its profile view") findEntityAction.triggered.connect(self.app.find_entity_show) + closeAction = QtGui.QAction("&Close Window", self.window) + closeAction.setShortcut("Ctrl+w") + closeAction.setStatusTip("Close this window") + closeAction.triggered.connect(self.window.close) + logOutAction = QtGui.QAction("&Log Out", self.window) logOutAction.setStatusTip("Log out from this entity") logOutAction.triggered.connect(self.app.log_out) @@ -126,6 +131,7 @@ class Timeline: fileMenu = menubar.addMenu("&File") fileMenu.addAction(newPostAction) fileMenu.addAction(findEntityAction) + fileMenu.addAction(closeAction) fileMenu.addSeparator() fileMenu.addAction(logOutAction) fileMenu.addAction(exitAction) @@ -473,5 +479,3 @@ class NewPost(Helper.RestorableWindow): else: self.imageFilePath = None - -