Skip to content

Commit

Permalink
Close old project only when new project acknowledged
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Noack authored and andynoack committed Mar 5, 2020
1 parent 59de801 commit 7f6e28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urh/controller/MainController.py
Expand Up @@ -728,7 +728,6 @@ def show_options_dialog_action_triggered(self):

@pyqtSlot()
def on_new_project_action_triggered(self):
self.close_project()
pdc = ProjectDialog(parent=self)
pdc.finished.connect(self.on_project_dialog_finished)
pdc.show()
Expand All @@ -754,6 +753,7 @@ def on_action_show_filetree_triggered(self):
@pyqtSlot()
def on_project_dialog_finished(self):
if self.sender().committed:
self.close_project()
self.project_manager.from_dialog(self.sender())

@pyqtSlot()
Expand Down

0 comments on commit 7f6e28e

Please sign in to comment.