diff options
Diffstat (limited to 'src/draganddrophelper.cpp')
| -rw-r--r-- | src/draganddrophelper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp index 002394155..c80aec786 100644 --- a/src/draganddrophelper.cpp +++ b/src/draganddrophelper.cpp @@ -55,6 +55,12 @@ void DragAndDropHelper::startDrag(QAbstractItemView* itemView, Qt::DropActions supportedActions, DolphinController* controller) { + //do not start a new drag until the previous one has been finished + //This is a (possibly temporary) fix for bug #187884 + static bool isDragging = false; + if (isDragging) return; + isDragging = true; + QModelIndexList indexes = itemView->selectionModel()->selectedIndexes(); if (indexes.count() > 0) { QMimeData *data = itemView->model()->mimeData(indexes); @@ -85,6 +91,7 @@ void DragAndDropHelper::startDrag(QAbstractItemView* itemView, drag->exec(supportedActions, Qt::IgnoreAction); m_dragSource = 0; } + isDragging = false; } bool DragAndDropHelper::isDragSource(QAbstractItemView* itemView) |
