┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placespanel.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-11-07 14:31:33 +0000
committerPeter Penz <[email protected]>2010-11-07 14:31:33 +0000
commit4fa931ae25eda718ab3a1666f385f9db6228d3a6 (patch)
tree49a64c9c5ece1ee942d7368882c0743e361df9a4 /src/panels/places/placespanel.cpp
parent369eb4117d1260f5c99e0c43f9b5888c4dbfe733 (diff)
Remove patch from SVN commit 1126336: It has sideeffects if the removed entry still shows a valid content.
BUG: 244021 BUG: 250405 FIXED-IN: 4.6.0 svn path=/trunk/KDE/kdebase/apps/; revision=1193904
Diffstat (limited to 'src/panels/places/placespanel.cpp')
-rw-r--r--src/panels/places/placespanel.cpp18
1 files changed, 0 insertions, 18 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);