]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix crash caused by unchecked pointer access
authorAndreas Ramm <psychobrain@gmx.net>
Thu, 1 Nov 2007 03:22:50 +0000 (03:22 +0000)
committerAndreas Ramm <psychobrain@gmx.net>
Thu, 1 Nov 2007 03:22:50 +0000 (03:22 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=731586

src/viewpropertiesdialog.cpp

index 102629875a448a22e170a61d0b67e8bcf713a656..5c9f7c3e10e08a91fc740c228bb0819a65b92580 100644 (file)
@@ -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.