]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewpropertiesdialog.cpp
Bypass a layout issue in QListView::visualRect(), where the horizontal position of...
[dolphin.git] / 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.