From: Andreas Ramm Date: Thu, 1 Nov 2007 03:22:50 +0000 (+0000) Subject: Fix crash caused by unchecked pointer access X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/d4e536b45f81c0fb0aeba475eb45d49e9f0c14a5 Fix crash caused by unchecked pointer access svn path=/trunk/KDE/kdebase/apps/; revision=731586 --- 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.