Skip to content

Commit

Permalink
only close current project if new one requested
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Apr 19, 2020
1 parent 93b99c7 commit 9631316
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/urh/controller/MainController.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,11 @@ 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())
if self.sender().new_project:
self.close_project()
self.project_manager.from_dialog(self.sender())
else:
self.project_manager.project_updated.emit()

@pyqtSlot()
def on_open_file_action_triggered(self):
Expand Down

0 comments on commit 9631316

Please sign in to comment.