]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.cpp
don't overrun the array (CID 3278)
[dolphin.git] / src / sidebartreeview.cpp
index ccd90846398835d6b6d9ea1ce4ffadc85c2bd87e..e5661cd0b433a8616274d6d18aad4c96e5109ce9 100644 (file)
@@ -1,6 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2006 by Peter Penz                                      *
- *   peter.penz@gmx.at                                                     *
+ *   Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>                  *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
@@ -78,7 +77,10 @@ void SidebarTreeView::dropEvent(QDropEvent* event)
     }
     else {
         event->acceptProposedAction();
-        //m_controller->indicateDroppedUrls(urls, event->pos());
+        const QModelIndex index = indexAt(event->pos());
+        if (index.isValid()) {
+            emit urlsDropped(urls, index);
+        }
     }
 }