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);
}
const int index = tabAt(event->pos());
if (mimeData->hasUrls()) {
- if (index >= 0) {
- event->acceptProposedAction();
- } else {
- event->setDropAction(Qt::IgnoreAction);
- }
updateAutoActivationTimer(index);
}
const QMimeData* mimeData = event->mimeData();
const int index = tabAt(event->pos());
- if (index >= 0 && mimeData->hasUrls()) {
+ if (mimeData->hasUrls()) {
Q_EMIT tabDropEvent(index, event);
}