From d4e536b45f81c0fb0aeba475eb45d49e9f0c14a5 Mon Sep 17 00:00:00 2001 From: Andreas Ramm Date: Thu, 1 Nov 2007 03:22:50 +0000 Subject: [PATCH] Fix crash caused by unchecked pointer access svn path=/trunk/KDE/kdebase/apps/; revision=731586 --- src/viewpropertiesdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp index 102629875..5c9f7c3e1 100644 --- a/src/viewpropertiesdialog.cpp +++ b/src/viewpropertiesdialog.cpp @@ -339,7 +339,7 @@ void ViewPropertiesDialog::applyViewProperties() m_isDirty = false; - if (m_useAsDefault->isChecked()) { + if (m_useAsDefault && m_useAsDefault->isChecked()) { // For directories where no .directory file is available, the .directory // file stored for the global view properties is used as fallback. To update // this file we temporary turn on the global view properties mode. -- 2.47.3