diff options
| author | Peter Penz <[email protected]> | 2010-10-10 11:11:45 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-10-10 11:11:45 +0000 |
| commit | 36e89e9fa614cbc428ada94784147dca341d2fb7 (patch) | |
| tree | 0c1434a6d1d0535242d5838604557ca9e46cfa56 /src/dolphincontextmenu.cpp | |
| parent | e8d895a91f45c3486e27fad01d01e6b40e7284ae (diff) | |
Internal cleanup: Remove public method selectedUrls() from DolphinView to keep the interface minimal (selectedItems() is already available)
svn path=/trunk/KDE/kdebase/apps/; revision=1184457
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 20be6f4e8..13fa6f35b 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -74,8 +74,10 @@ DolphinContextMenu::DolphinContextMenu(DolphinMainWindow* parent, // The context menu either accesses the URLs of the selected items // or the items itself. To increase the performance both lists are cached. const DolphinView* view = m_mainWindow->activeViewContainer()->view(); - m_selectedUrls = view->selectedUrls(); m_selectedItems = view->selectedItems(); + foreach (const KFileItem &item, m_selectedItems) { + m_selectedUrls.append(item.url()); + } if (m_keyInfo != 0) { if (m_keyInfo->isKeyPressed(Qt::Key_Shift) || m_keyInfo->isKeyLatched(Qt::Key_Shift)) { |
