diff options
| author | David Faure <[email protected]> | 2007-12-14 15:53:40 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-12-14 15:53:40 +0000 |
| commit | 609ce0929289f3e26eb1898b184c7dafbf7bcac2 (patch) | |
| tree | a1e6fa0f02f6a404e1e6e402ca8980efe515a08f /src/dolphiniconsview.cpp | |
| parent | c436a142e854b724742acb82a2de111a36b616ce (diff) | |
Moving code around in dolphin fixes DnD support in konqueror :)
svn path=/trunk/KDE/kdebase/apps/; revision=748476
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index a45b08dcf..0c888d871 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -225,12 +225,20 @@ void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event) setDirtyRegion(m_dropRect); m_dropRect.setSize(QSize()); // set as invalid + bool destIsDir = false; if (index.isValid()) { const KFileItem item = itemForIndex(index); if (!item.isNull() && item.isDir()) { m_dropRect = visualRect(index); + destIsDir = true; } + } else { // dropping on viewport + destIsDir = true; } + if (destIsDir && event->mimeData()->hasUrls()) { + event->acceptProposedAction(); + } + setDirtyRegion(m_dropRect); } |
