diff options
| author | Konstantin <const@const.me> | 2023-01-20 20:31:33 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-20 20:31:33 +0100 |
| commit | 279da31e18e0366a9272ca083939211594a07c0c (patch) | |
| tree | ee5bb5db79f29cc3b3e4a19618c197c013e62c46 /Examples | |
| parent | cec66276d467faf5b6774ff2b781e0119b5d7f46 (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.cpp | 1 |
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 ) |
