From 7665ee95afe66c97c915996476a5b51b8220ac9d Mon Sep 17 00:00:00 2001 From: Ignat Semenov Date: Mon, 15 Apr 2013 20:53:52 +0400 Subject: [PATCH] keep 4 context menu checkboxes and Display page in sync --- plasma/applets/folderview/folderview.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plasma/applets/folderview/folderview.cpp b/plasma/applets/folderview/folderview.cpp index 8e8a7d1b32..de308a18d7 100644 --- a/plasma/applets/folderview/folderview.cpp +++ b/plasma/applets/folderview/folderview.cpp @@ -1813,6 +1813,9 @@ void FolderView::toggleIconsLocked(bool locked) if (m_iconView) { m_iconView->setIconsMoveable(!locked); } + if (isUserConfiguring()) { + uiDisplay.lockInPlace->setChecked(locked); + } config().writeEntry("iconsLocked", locked); emit configNeedsSaving(); @@ -1825,6 +1828,9 @@ void FolderView::toggleAlignToGrid(bool align) if (m_iconView) { m_iconView->setAlignToGrid(align); } + if (isUserConfiguring()) { + uiDisplay.alignToGrid->setChecked(align); + } config().writeEntry("alignToGrid", align); emit configNeedsSaving(); @@ -1839,6 +1845,9 @@ void FolderView::toggleClickToViewFolders(bool enable) if (m_iconView) { m_iconView->setClickToViewFolders(enable); } + if (isUserConfiguring()) { + uiDisplay.clickToView->setChecked(enable); + } config().writeEntry("clickForFolderPreviews", enable); emit configNeedsSaving(); @@ -1854,6 +1863,9 @@ void FolderView::toggleDirectoriesFirst(bool enable) if (m_sortColumn != -1) { m_model->invalidate(); } + if (isUserConfiguring()) { + uiDisplay.foldersFirst->setChecked(enable); + } config().writeEntry("sortDirsFirst", m_sortDirsFirst); emit configNeedsSaving();