Skip to content

Commit

Permalink
when rename, set replay name first
Browse files Browse the repository at this point in the history
  • Loading branch information
MininuxDev committed May 14, 2021
1 parent 302c729 commit 8593761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mininux_replay_manager/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def rename_replay(self):
replay_name = self.get_selected_replay_name()
if replay_name:
new_name, _ = QInputDialog.getText(self, self.tr("Rename replay"), self.tr("New name :"), text=replay_name)
controllers.rename_replay(self.replay_data_path, replay_name, new_name)
if _:
controllers.rename_replay(self.replay_data_path, replay_name, new_name)
else:
self.warn_no_replay_selected()

Expand Down

0 comments on commit 8593761

Please sign in to comment.