|
@@ -471,7 +471,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
|
icon = newIcon('labels')
|
|
icon = newIcon('labels')
|
|
action = QAction(
|
|
action = QAction(
|
|
icon, '&%d %s' % (i+1, QFileInfo(f).fileName()), self)
|
|
icon, '&%d %s' % (i+1, QFileInfo(f).fileName()), self)
|
|
- action.triggered.connect(partial(self.loadFile, f))
|
|
|
|
|
|
+ action.triggered.connect(partial(self.loadRecent, f))
|
|
menu.addAction(action)
|
|
menu.addAction(action)
|
|
|
|
|
|
def popLabelListMenu(self, point):
|
|
def popLabelListMenu(self, point):
|
|
@@ -725,6 +725,10 @@ class MainWindow(QMainWindow, WindowMixin):
|
|
|
|
|
|
## User Dialogs ##
|
|
## User Dialogs ##
|
|
|
|
|
|
|
|
+ def loadRecent(self, filename):
|
|
|
|
+ if self.mayContinue():
|
|
|
|
+ self.loadFile(filename)
|
|
|
|
+
|
|
def openFile(self, _value=False):
|
|
def openFile(self, _value=False):
|
|
if not self.mayContinue():
|
|
if not self.mayContinue():
|
|
return
|
|
return
|