summaryrefslogtreecommitdiffstats
path: root/Examples
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-20 20:31:33 +0100
committerKonstantin <const@const.me>2023-01-20 20:31:33 +0100
commit279da31e18e0366a9272ca083939211594a07c0c (patch)
treeee5bb5db79f29cc3b3e4a19618c197c013e62c46 /Examples
parentcec66276d467faf5b6774ff2b781e0119b5d7f46 (diff)
UX bugfix, weird output path when a copy-pasted input path ends with a space
Diffstat (limited to 'Examples')
-rw-r--r--Examples/WhisperDesktop/TranscribeDlg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Examples/WhisperDesktop/TranscribeDlg.cpp b/Examples/WhisperDesktop/TranscribeDlg.cpp
index 0e05827..86851f1 100644
--- a/Examples/WhisperDesktop/TranscribeDlg.cpp
+++ b/Examples/WhisperDesktop/TranscribeDlg.cpp
@@ -176,6 +176,7 @@ void TranscribeDlg::setOutputPath( const CString& input )
return;
const LPCTSTR ext = outputExtensions[ format ];
CString path = input;
+ path.Trim();
const bool renamed = PathRenameExtension( path.GetBufferSetLength( path.GetLength() + 4 ), ext );
path.ReleaseBuffer();
if( !renamed )