From 9d45f7f1a986aaa5d3c084c7ae747442b94a61b1 Mon Sep 17 00:00:00 2001 From: tassaron Date: Sun, 15 Sep 2024 17:00:03 -0400 Subject: fix #78 --- src/components/video.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/video.py') diff --git a/src/components/video.py b/src/components/video.py index 9fffc26..60ca800 100644 --- a/src/components/video.py +++ b/src/components/video.py @@ -63,16 +63,16 @@ class Component(Component): def properties(self): props = [] + outputFile = None if hasattr(self.parent, 'lineEdit_outputFile'): + # check only happens in GUI mode outputFile = self.parent.lineEdit_outputFile.text() - else: - outputFile = str(self.parent.args.output) if not self.videoPath: self.lockError("There is no video selected.") elif not os.path.exists(self.videoPath): self.lockError("The video selected does not exist!") - elif os.path.realpath(self.videoPath) == os.path.realpath(outputFile): + elif outputFile and os.path.realpath(self.videoPath) == os.path.realpath(outputFile): self.lockError("Input and output paths match.") if self.useAudio: -- cgit v1.2.3