Fix compiler warning, which spotted a real bug.

ItemLayout is an enum, not a flag, so == is even more correct than '&'.
This commit is contained in:
David Faure 2012-07-20 12:11:45 +02:00
parent 379d94eab6
commit 95d655683c

View file

@ -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);