]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placespanel.cpp
Remove patch from SVN commit 1126336: It has sideeffects if the removed entry still...
[dolphin.git] / src / panels / places / placespanel.cpp
index 1ca9bf59a1ef5069a8b8a8c530b66bb237cd92e2..d2e3ef5702c83f6186f770b3af091af7e5d8c55b 100644 (file)
 
 #include "placespanel.h"
 
-#include "dolphin_generalsettings.h"
 #include <kfileitem.h>
 #include <konq_operations.h>
-#include "settings/dolphinsettings.h"
 #include "views/draganddrophelper.h"
 
 PlacesPanel::PlacesPanel(QWidget* parent) :
@@ -47,22 +45,6 @@ void PlacesPanel::mousePressEvent(QMouseEvent* event)
     KFilePlacesView::mousePressEvent(event);
 }
 
-void PlacesPanel::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end)
-{
-    Q_UNUSED(parent);
-
-    const QModelIndexList indexes = selectedIndexes();
-    if (!indexes.isEmpty()) {
-        const int selectedRow = indexes.first().row();
-        if ((start >= selectedRow) && (end <= selectedRow)) {
-            // The currently selected item is about to be removed, reset view to home URL
-            const KUrl homeUrl = DolphinSettings::instance().generalSettings()->homeUrl();
-            setUrl(homeUrl);
-            emit urlChanged(homeUrl, Qt::NoButton);
-        }
-    }
-}
-
 void PlacesPanel::slotUrlsDropped(const KUrl& dest, QDropEvent* event, QWidget* parent)
 {
     DragAndDropHelper::instance().dropUrls(KFileItem(), dest, event, parent);