diff --git a/src/mininux_replay_manager/main_window.py b/src/mininux_replay_manager/main_window.py index 9529e0c..a778eaa 100644 --- a/src/mininux_replay_manager/main_window.py +++ b/src/mininux_replay_manager/main_window.py @@ -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()