[add] testing: saveProjectAs option 'always' enabled when project is active

This commit is contained in:
Marcel Paffrath 2017-06-20 16:30:13 +02:00
parent 1b512a0864
commit 6daccad341

View File

@ -2196,6 +2196,7 @@ class MainWindow(QMainWindow):
self.project.parameter=self._inputs self.project.parameter=self._inputs
self.project.save(filename) self.project.save(filename)
self.setDirty(False) self.setDirty(False)
self.saveProjectAsAction.setEnabled(True)
self.update_status('Creating new project...', duration=1000) self.update_status('Creating new project...', duration=1000)
return True return True
@ -2260,7 +2261,7 @@ class MainWindow(QMainWindow):
def setDirty(self, value): def setDirty(self, value):
self.saveProjectAction.setEnabled(value) self.saveProjectAction.setEnabled(value)
self.saveProjectAsAction.setEnabled(value) self.saveProjectAsAction.setEnabled(True)
self.project.setDirty(value) self.project.setDirty(value)
self.dirty = value self.dirty = value