mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
379d94eab6
commit
95d655683c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue