]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/infosidebarpage.cpp
Do not abort/exit when accessing the string out of bounds
[dolphin.git] / src / infosidebarpage.cpp
index 3a8099d6e1ddae863240485c356f7cecb7f3146f..f08649ac272a2c84e8d8ff94dfb63cc8d82816b8 100644 (file)
@@ -236,7 +236,7 @@ void InfoSidebarPage::connectToActiveView()
     DolphinView* view = mainWindow()->activeView();
     connect(view, SIGNAL(requestItemInfo(const KUrl&)),
             this, SLOT(requestDelayedItemInfo(const KUrl&)));
-    connect(view, SIGNAL(signalUrlChanged(const KUrl&)),
+    connect(view, SIGNAL(urlChanged(const KUrl&)),
             this, SLOT(requestItemInfo(const KUrl&)));
 
     m_shownUrl = view->url();
@@ -448,7 +448,7 @@ void InfoSidebarPage::insertActions()
             KSimpleConfig cfg(*dirIt + *entryIt, true);
             cfg.setDesktopGroup();
             if ((cfg.hasKey("Actions") || cfg.hasKey("X-KDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) {
-                const QStringList types = cfg.readListEntry("ServiceTypes");
+                const QStringList types = cfg.readListEntry("ServiceTypes", ',');
                 for (QStringList::ConstIterator it = types.begin(); it != types.end(); ++it) {
                     // check whether the mime type is equal or whether the
                     // mimegroup (e. g. image/*) is supported
@@ -493,7 +493,7 @@ void InfoSidebarPage::insertActions()
 
                             QPushButton* button = new QPushButton(submenuName, m_actionBox);
                             button->setFlat(true);
-                            button->setPopup(popup);
+                            button->setMenu(popup);
                             button->show();
                             m_actionWidgets.append(button);
                         }