X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/793ad44cb82c69de89a128f2bd41dd9bede5130f..42b57060dc0561fe8d3d5c8b851e05069a3d51c5:/src/dolphintabbar.cpp diff --git a/src/dolphintabbar.cpp b/src/dolphintabbar.cpp index 4c1d9e44a..d3dc96393 100644 --- a/src/dolphintabbar.cpp +++ b/src/dolphintabbar.cpp @@ -36,13 +36,7 @@ void DolphinTabBar::dragEnterEvent(QDragEnterEvent* event) const int index = tabAt(event->pos()); if (mimeData->hasUrls()) { - if (index >= 0) { - event->acceptProposedAction(); - } else { - event->setDropAction(Qt::IgnoreAction); - // Still need to accept it to receive dragMoveEvent - event->accept(); - } + event->acceptProposedAction(); updateAutoActivationTimer(index); } @@ -62,11 +56,6 @@ void DolphinTabBar::dragMoveEvent(QDragMoveEvent* event) const int index = tabAt(event->pos()); if (mimeData->hasUrls()) { - if (index >= 0) { - event->acceptProposedAction(); - } else { - event->setDropAction(Qt::IgnoreAction); - } updateAutoActivationTimer(index); } @@ -81,7 +70,7 @@ void DolphinTabBar::dropEvent(QDropEvent* event) const QMimeData* mimeData = event->mimeData(); const int index = tabAt(event->pos()); - if (index >= 0 && mimeData->hasUrls()) { + if (mimeData->hasUrls()) { Q_EMIT tabDropEvent(index, event); }