[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/apps/dolphin/src
From:       Peter Penz <peter.penz () gmx ! at>
Date:       2010-03-14 13:18:11
Message-ID: 1268572691.361396.30207.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1103145 by ppenz:

Fix compilation on OpenSolaris with Sun Studio

Thanks to Tropikhajma for the patch!

BUG: 230251

 M  +7 -2      dolphinpart.cpp  


--- trunk/KDE/kdebase/apps/dolphin/src/dolphinpart.cpp #1103144:1103145
@@ -384,8 +384,13 @@
 
     // 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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic