mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-14 09:52:27 +12:00
Fixes bug when switching projects
This commit is contained in:
parent
cf6e021ed1
commit
26ffc47350
|
@ -375,6 +375,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
|
||||
def closeProject(self):
|
||||
|
||||
if not self.currentProject:
|
||||
return
|
||||
|
||||
# Close open tabs in editor
|
||||
self.mainEditor.closeAllTabs()
|
||||
|
||||
|
|
|
@ -115,6 +115,7 @@ class welcome(QWidget, Ui_welcome):
|
|||
def loadRecentFile(self):
|
||||
act = self.sender()
|
||||
self.appendToRecentFiles(act.data())
|
||||
self.mw.closeProject()
|
||||
self.mw.loadProject(act.data())
|
||||
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in a new issue