diff options
| author | Peter Penz <[email protected]> | 2012-01-27 21:52:29 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-01-27 22:02:42 +0100 |
| commit | f8f5cf8760fbed119c7a171506c9c43b31d56e15 (patch) | |
| tree | 79a7ed0a34299b9eb64d2ec3b0970b48678cb22a /src/dolphinmainwindow.cpp | |
| parent | 05fec8d24bcfbcb7bccc923df95776c4dc89e99d (diff) | |
Fix regression: Allow dragging items on a tab
BUG: 292505
FIXED-IN: 4.8.1
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 60fded631..3654ed6c9 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -41,6 +41,7 @@ #include "statusbar/dolphinstatusbar.h" #include "views/dolphinviewactionhandler.h" #include "views/dolphinremoteencoding.h" +#include "views/draganddrophelper.h" #include "views/viewproperties.h" #ifndef Q_OS_WIN @@ -1327,9 +1328,9 @@ void DolphinMainWindow::tabDropEvent(int tab, QDropEvent* event) const KUrl::List urls = KUrl::List::fromMimeData(event->mimeData()); if (!urls.isEmpty() && tab != -1) { const ViewTab& viewTab = m_viewTab[tab]; - const KUrl destPath = viewTab.isPrimaryViewActive ? viewTab.primaryView->url() : viewTab.secondaryView->url(); - Q_UNUSED(destPath); - //DragAndDropHelper::instance().dropUrls(KFileItem(), destPath, event, m_tabBar); + const DolphinView* view = viewTab.isPrimaryViewActive ? viewTab.primaryView->view() + : viewTab.secondaryView->view(); + DragAndDropHelper::dropUrls(view->rootItem(), event); } } |
