Logo Search packages:      
Sourcecode: d3lphin version File versions  Download package

void Dolphin::slotSelectionChanged (  )  [slot]

Updates the state of the 'Edit' menu actions.

Definition at line 278 of file dolphin.cpp.

References DolphinView::selectedURLs(), selectionChanged(), and DolphinView::updateStatusBar().

Referenced by DolphinIconsView::contentsMouseReleaseEvent().

{
    updateEditActions();

    assert(m_view[PrimaryIdx] != 0);
    int selectedURLsCount = m_view[PrimaryIdx]->selectedURLs().count();
    if (m_view[SecondaryIdx] != 0) {
        selectedURLsCount += m_view[SecondaryIdx]->selectedURLs().count();
    }

    KAction* compareFilesAction = actionCollection()->action("compare_files");
    compareFilesAction->setEnabled(selectedURLsCount == 2);

    m_activeView->updateStatusBar();

    emit selectionChanged();
}


Generated by  Doxygen 1.6.0   Back to index