┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2012-07-20 12:11:45 +0200
committerDavid Faure <[email protected]>2012-07-20 12:11:45 +0200
commit43474e7b9d55c3fe768032cf7e69f46bcf5c14cd (patch)
treed5b63d57f7abbcc51bd5ec2aaf63daf1f71d7b87
parent149975a0044f0a964c44b98e3228f4aeb6588d00 (diff)
Fix compiler warning, which spotted a real bug.
ItemLayout is an enum, not a flag, so == is even more correct than '&'.
-rw-r--r--src/views/dolphinitemlistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinitemlistview.cpp b/src/views/dolphinitemlistview.cpp
index a031b1699..039b5f230 100644
--- a/src/views/dolphinitemlistview.cpp
+++ b/src/views/dolphinitemlistview.cpp
@@ -90,7 +90,7 @@ void DolphinItemListView::readSettings()
setEnabledSelectionToggles(GeneralSettings::showSelectionToggle());
- const bool expandableFolders = (itemLayout() && KFileItemListView::DetailsLayout) &&
+ const bool expandableFolders = (itemLayout() == KFileItemListView::DetailsLayout) &&
DetailsModeSettings::expandableFolders();
setSupportsItemExpanding(expandableFolders);