Commit c5bfff3d authored by Robert Knight's avatar Robert Knight
Browse files

Fix flicker when dropping a tab onto itself. Return after ignoring the drop event.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=803111
parent 204d2bcc
......@@ -561,11 +561,12 @@ void ViewContainerTabBar::dropEvent(QDropEvent* event)
{
setDropIndicator(-1);
if (!event->mimeData()->hasFormat(ViewProperties::mimeType()))
if ( !event->mimeData()->hasFormat(ViewProperties::mimeType())
|| proposedDropIsSameTab(event) )
{
event->ignore();
if (proposedDropIsSameTab(event))
event->ignore();
return;
}
int index = dropIndex(event->pos());
int droppedId = ViewProperties::decodeMimeData(event->mimeData());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment