diff options
author | ormorph <roma251078@mail.ru> | 2024-09-05 22:54:44 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-09-06 08:37:12 +0900 |
commit | 109f8e74d9f7866a1c47a8ca942e422ebd304e22 (patch) | |
tree | e4bff96ca9e993eee6ff2f6772aeb9f64ccd5be5 | |
parent | ef957d707ca4732712c96b1484b04fac4a41026f (diff) | |
download | kstreamripper-109f8e74d9f7866a1c47a8ca942e422ebd304e22.tar.gz kstreamripper-109f8e74d9f7866a1c47a8ca942e422ebd304e22.zip |
Added check for pressing the Cancel button in the file dialogr14.1.3
The Destination field should not be changed if the cancel button is pressed in the file dialog
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 946c66e6742dd3ca603306c1be079e5dd7512613)
-rw-r--r-- | src/kstreamripper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kstreamripper.cpp b/src/kstreamripper.cpp index 4e4142b..57a27a7 100644 --- a/src/kstreamripper.cpp +++ b/src/kstreamripper.cpp @@ -307,7 +307,8 @@ void KStreamRipper::browseButtonClicked() TQString openDest = KFileDialog::getExistingDirectory( TQDir::homeDirPath(), this, "Select Destination..." ); - m_destEdit->setText( openDest ); + if ( !openDest.isEmpty() ) + m_destEdit->setText( openDest ); } void KStreamRipper::helpButtonClicked() |