diff options
| -rw-r--r-- | src/panels/places/placespanel.cpp | 18 | ||||
| -rw-r--r-- | src/panels/places/placespanel.h | 1 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 1ca9bf59a..d2e3ef570 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -20,10 +20,8 @@ #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); diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index f39bdec47..05a0b45ac 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -39,7 +39,6 @@ signals: protected: virtual void mousePressEvent(QMouseEvent* event); - virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); private slots: void slotUrlsDropped(const KUrl& dest, QDropEvent* event, QWidget* parent); |
