diff options
| author | Peter Penz <[email protected]> | 2009-03-26 18:58:53 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-03-26 18:58:53 +0000 |
| commit | 0bca984ad14487072631425304e1e2dcb22f681b (patch) | |
| tree | 81a98e58d192ae91d319b8f0c84fcbca8b1e7378 /src/draganddrophelper.cpp | |
| parent | b2bda0d410d04f5aa0c0c85e4456bea54ebe1f0a (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.cpp | 14 |
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) |
