X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/283f97ac27c3cfe5c72682b0843503e31643a612..da76a0722cf0db07e90aa257bbdba717cdb68817:/src/views/dolphinviewactionhandler.cpp diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index f765b4a09..f66aebc84 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -69,7 +69,7 @@ void DolphinViewActionHandler::setCurrentView(DolphinView* view) QList)), this, SLOT(slotAdditionalInfoListChanged(QList, QList))); - connect(view, SIGNAL(categorizedSortingChanged(bool)), + connect(view, SIGNAL(groupedSortingChanged(bool)), this, SLOT(slotGroupedSortingChanged(bool))); connect(view, SIGNAL(hiddenFilesShownChanged(bool)), this, SLOT(slotHiddenFilesShownChanged(bool))); @@ -195,6 +195,7 @@ void DolphinViewActionHandler::createActions() } KToggleAction* showInGroups = m_actionCollection->add("show_in_groups"); + showInGroups->setIcon(KIcon("view-group")); showInGroups->setText(i18nc("@action:inmenu View", "Show in Groups")); connect(showInGroups, SIGNAL(triggered(bool)), this, SLOT(toggleGroupedSorting(bool))); @@ -314,6 +315,9 @@ QString DolphinViewActionHandler::currentViewModeActionName() const return "details"; case DolphinView::CompactView: return "compact"; + default: + Q_ASSERT(false); + break; } return QString(); // can't happen }