From 6966253e9be16730ae9ce7efbcbb0a49cab91433 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 3 Aug 2025 20:14:02 +0500 Subject: [PATCH] fix(add_game_dialog): check exe path before add game Signed-off-by: Boris Yumankulov --- portprotonqt/dialogs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index 87d66d7..1a652ec 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -677,7 +677,10 @@ class AddGameDialog(QDialog): exe_path = self.exeEdit.text().strip() name = self.nameEdit.text().strip() - if not exe_path or not name: + if not exe_path or not os.path.isfile(exe_path): + return None, None + + if not name: return None, None portproton_path = get_portproton_location()