From 946c66e6742dd3ca603306c1be079e5dd7512613 Mon Sep 17 00:00:00 2001 From: ormorph Date: Thu, 5 Sep 2024 22:54:44 +0300 Subject: 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 --- src/kstreamripper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1