diff options
| author | Peter Penz <[email protected]> | 2010-03-14 13:18:09 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-03-14 13:18:09 +0000 |
| commit | ea3eb3916097644e307e98f4538a62b6e0104be5 (patch) | |
| tree | e76c1d8b6197c0ec09bcdec308a897114d2fbf89 /src/dolphinpart.cpp | |
| parent | fbc221c4ffbac58a229c807f7699a89b29aa6b6c (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.cpp | 9 |
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; |
