From: Peter Penz Date: Thu, 26 Mar 2009 18:58:53 +0000 (+0000) Subject: SVN_SILENT: coding style fix (use spaces, no tabs) X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0bca984ad14487072631425304e1e2dcb22f681b SVN_SILENT: coding style fix (use spaces, no tabs) svn path=/trunk/KDE/kdebase/apps/; revision=945041 --- 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)