Skip to content

Commit

Permalink
Merge pull request #15 from NationalLibraryOfNorway/beta-develop
Browse files Browse the repository at this point in the history
Fixed bug with dcp selection
  • Loading branch information
EmilJohan authored Aug 8, 2024
2 parents 4992c81 + c1c16c3 commit 73f43d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Smelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand All @@ -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)
Expand Down

0 comments on commit 73f43d8

Please sign in to comment.