From bb9771ea7c44221c95115b53ae6b72aec5fc36a2 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage <emmanuel.lepage@savoirfairelinux.com> Date: Fri, 15 Jun 2012 11:46:37 -0400 Subject: [PATCH] [ #12471 ] Doing nothing when a conference is dropped on itself --- kde/src/CallView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kde/src/CallView.cpp b/kde/src/CallView.cpp index 924e3a8ee9..e9a9248287 100644 --- a/kde/src/CallView.cpp +++ b/kde/src/CallView.cpp @@ -207,6 +207,10 @@ bool CallView::callToCall(QTreeWidgetItem *parent, int index, const QMimeData *d kDebug() << "Call dropped on itself (doing nothing)"; return true; } + else if (SFLPhone::model()->getIndex(encodedCallId) == parent) { + kDebug() << "Dropping conference on itself (doing nothing)"; + return true; + } if ((parent->childCount()) && (SFLPhone::model()->getIndex(encodedCallId)->childCount())) { kDebug() << "Merging two conferences"; -- GitLab