┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-03-14 13:18:09 +0000
committerPeter Penz <[email protected]>2010-03-14 13:18:09 +0000
commitea3eb3916097644e307e98f4538a62b6e0104be5 (patch)
treee76c1d8b6197c0ec09bcdec308a897114d2fbf89 /src/dolphinpart.cpp
parentfbc221c4ffbac58a229c807f7699a89b29aa6b6c (diff)
Fix compilation on OpenSolaris with Sun Studio
Thanks to Tropikhajma for the patch! BUG: 230251 svn path=/trunk/KDE/kdebase/apps/; revision=1103145
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index 0a17c7884..519d05741 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -384,8 +384,13 @@ void DolphinPart::slotOpenContextMenu(const KFileItem& _item,
// TODO: We should change the signature of the slots (and signals) for being able
// to tell for which items we want a popup.
- const KFileItemList items = (m_view->selectedItems().count() ? m_view->selectedItems()
- : KFileItemList() << item);
+ KFileItemList items;
+ if (m_view->selectedItems().isEmpty()) {
+ items.append(item);
+ } else {
+ items = m_view->selectedItems();
+ }
+
KFileItemListProperties capabilities(items);
KParts::BrowserExtension::ActionGroupMap actionGroups;