aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Haumann <dhaumann@kde.org>2016-11-13 11:35:44 (GMT)
committerDominik Haumann <dhaumann@kde.org>2016-11-13 11:35:44 (GMT)
commit0b05000bfdde06aec2dc6528411ec24c9e20e672 (patch)
tree68ea0543fa80cc512d969fc2294d391a904e04fa
parentc5e60cbbae125a6c3e0f282cd00497a4bbef062f (diff)
Fix: Kate crashes when trying to drag tabs between windowsApplications/16.08
BUG: 372025 FIXED-IN: Applications 16.08.4
-rw-r--r--kate/katetabbar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kate/katetabbar.cpp b/kate/katetabbar.cpp
index c89f1b6..6f60d1c 100644
--- a/kate/katetabbar.cpp
+++ b/kate/katetabbar.cpp
@@ -522,7 +522,8 @@ void KateTabBar::wheelEvent(QWheelEvent * event)
void KateTabBar::dragEnterEvent(QDragEnterEvent *event)
{
- if (event->mimeData()->hasFormat(QStringLiteral("application/x-dndkatetabbutton"))) {
+ const bool sameApplication = event->source() != nullptr;
+ if (sameApplication && event->mimeData()->hasFormat(QStringLiteral("application/x-dndkatetabbutton"))) {
if (event->source()->parent() == this) {
event->setDropAction(Qt::MoveAction);
event->accept();