]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Remove patch from SVN commit 1126336: It has sideeffects if the removed entry still...
authorPeter Penz <peter.penz19@gmail.com>
Sun, 7 Nov 2010 14:31:33 +0000 (14:31 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 7 Nov 2010 14:31:33 +0000 (14:31 +0000)
BUG: 244021
BUG: 250405
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1193904

src/panels/places/placespanel.cpp
src/panels/places/placespanel.h

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);
index f39bdec47ef21ebfc0aca8b8c14d816e34fa53a2..05a0b45acc925020ba9c30e5698bb6dcb7ced63b 100644 (file)
@@ -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);