summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2024-09-05 22:54:44 +0300
committerormorph <roma251078@mail.ru>2024-09-05 22:56:10 +0300
commit946c66e6742dd3ca603306c1be079e5dd7512613 (patch)
tree48817a5154a467fb8b3557c0d1b74f0542ba9271 /src
parent466a7399fc3ccdfc2b777eae37fedb66e47444f9 (diff)
downloadkstreamripper-946c66e6742dd3ca603306c1be079e5dd7512613.tar.gz
kstreamripper-946c66e6742dd3ca603306c1be079e5dd7512613.zip
Added check for pressing the Cancel button in the file dialog
The Destination field should not be changed if the cancel button is pressed in the file dialog Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'src')
-rw-r--r--src/kstreamripper.cpp3
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()