From c1c16c349ac45477b4c4b524e0e2353ae7a5d681 Mon Sep 17 00:00:00 2001 From: EmilJohan Date: Thu, 8 Aug 2024 16:58:00 +0200 Subject: [PATCH] Fixed bug with dcp selection --- Smelt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Smelt.py b/Smelt.py index 47a43de..4b8ee39 100644 --- a/Smelt.py +++ b/Smelt.py @@ -139,7 +139,7 @@ def select_film(): self.film_file_path = file_path file_name = os.path.basename(file_path) self.folder_path = os.path.dirname(file_path) - self.mappe_input_field.setText(file_name) + self.mappe_input_field.setText(file_path) def select_audio(): self.inkluderLydCheckBox.setChecked(True) @@ -327,7 +327,7 @@ def check_path_validity(self): """ Check the validity of the paths in the input fields and update attributes accordingly. """ - mappe_input_text = self.mappe_input_field.text().strip() + mappe_input_text = os.path.abspath(self.mappe_input_field.text()) fil_input_text = self.fil_input_field.text().strip() if os.path.isdir(mappe_input_text): @@ -343,6 +343,7 @@ def check_path_validity(self): self.inkluderLydCheckBox.setChecked(False) if self.audio_file_path != '' and not (os.path.isdir(mappe_input_text) | os.path.isfile(mappe_input_text)): + if not self.kunLydCheckBox.isChecked(): self.kunLydCheckBox.setChecked(True) self.inkluderProresCheckBox.setChecked(False)