┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/draganddrophelper.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-03-26 18:58:53 +0000
committerPeter Penz <[email protected]>2009-03-26 18:58:53 +0000
commit0bca984ad14487072631425304e1e2dcb22f681b (patch)
tree81a98e58d192ae91d319b8f0c84fcbca8b1e7378 /src/draganddrophelper.cpp
parentb2bda0d410d04f5aa0c0c85e4456bea54ebe1f0a (diff)
SVN_SILENT: coding style fix (use spaces, no tabs)
svn path=/trunk/KDE/kdebase/apps/; revision=945041
Diffstat (limited to 'src/draganddrophelper.cpp')
-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)