Fixes bug when switching projects

This commit is contained in:
Olivier Keshavjee 2016-03-31 10:50:20 +02:00
parent cf6e021ed1
commit 26ffc47350
2 changed files with 4 additions and 0 deletions

View file

@ -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()

View file

@ -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())
###############################################################################