]> cloud.milkyroute.net Git - dolphin.git/commitdiff
SVN_SILENT: coding style fix (use spaces, no tabs)
authorPeter Penz <peter.penz19@gmail.com>
Thu, 26 Mar 2009 18:58:53 +0000 (18:58 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 26 Mar 2009 18:58:53 +0000 (18:58 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=945041

src/draganddrophelper.cpp

index c80aec7869254b7e10071b06369b595899f9c100..fa4c9856612c839ba18ea0086e3c5f5350e3c31f 100644 (file)
@@ -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)