┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/draganddrophelper.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp
index c80aec786..fa4c98566 100644
--- a/src/draganddrophelper.cpp
+++ b/src/draganddrophelper.cpp
@@ -55,11 +55,13 @@ 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;
+ // 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) {
@@ -91,7 +93,7 @@ void DragAndDropHelper::startDrag(QAbstractItemView* itemView,
drag->exec(supportedActions, Qt::IgnoreAction);
m_dragSource = 0;
}
- isDragging = false;
+ isDragging = false;
}
bool DragAndDropHelper::isDragSource(QAbstractItemView* itemView)