┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-13 05:30:55 +0000
committerPeter Penz <[email protected]>2008-06-13 05:30:55 +0000
commitb4bbde40055d48202f02a9f4557cb3292dc5e85b (patch)
tree06be8148d6b4d2d92209f2b4fd8f80716990ea42
parent07eae8826fe0c0d550fc44b63d873befc1455972 (diff)
Fix the "Apply" - "OK" problem in the viewproperties dialog (patch done by Rafael Fernández López). One related problem still has to be solved...
CCBUG: 163366 svn path=/trunk/KDE/kdebase/apps/; revision=820062
-rw-r--r--src/viewpropertiesdialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp
index c0db408f2..5922f8359 100644
--- a/src/viewpropertiesdialog.cpp
+++ b/src/viewpropertiesdialog.cpp
@@ -310,8 +310,12 @@ void ViewPropertiesDialog::configureAdditionalInfo()
void ViewPropertiesDialog::applyViewProperties()
{
- const bool applyToSubFolders = m_isDirty &&
- (m_applyToSubFolders != 0) &&
+ // if nothing changed in the dialog, we have nothing to apply
+ if (!m_isDirty) {
+ return;
+ }
+
+ const bool applyToSubFolders = (m_applyToSubFolders != 0) &&
m_applyToSubFolders->isChecked();
if (applyToSubFolders) {
const QString text(i18nc("@info", "The view properties of all sub folders will be changed. Do you want to continue?"));
@@ -327,8 +331,7 @@ void ViewPropertiesDialog::applyViewProperties()
info->show();
}
- const bool applyToAllFolders = m_isDirty &&
- (m_applyToAllFolders != 0) &&
+ const bool applyToAllFolders = (m_applyToAllFolders != 0) &&
m_applyToAllFolders->isChecked();
// If the user selected 'Apply To All Folders' the view properties implicitely