From 36e89e9fa614cbc428ada94784147dca341d2fb7 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 10 Oct 2010 11:11:45 +0000 Subject: 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 --- src/dolphincontextmenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dolphincontextmenu.cpp') 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)) { -- cgit v1.3