Allows merging buffers over networks
authorKimmo Huoman <kipenroskaposti@gmail.com>
Mon, 2 Feb 2015 12:13:51 +0000 (14:13 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 18 Feb 2015 20:09:27 +0000 (21:09 +0100)
Feature request at http://bugs.quassel-irc.org/issues/1334

> As stated in Issue 83 merge is only possible with chats on the
> same network.
> As the usage of Bitlbee etc has increased, it would be useful
> to be able to merge chats across all networks as well. The issue
> rises as people are now using alternative methods (Facebook, Lync
> etc) during the day and returning to IRC in the evening.

Closes #1334

src/uisupport/bufferview.cpp

index 7973785..d092146 100644 (file)
@@ -253,7 +253,6 @@ void BufferView::dropEvent(QDropEvent *event)
     if (bufferList.count() != 1)
         return QTreeView::dropEvent(event);
 
-    NetworkId networkId = bufferList[0].first;
     BufferId bufferId2 = bufferList[0].second;
 
     if (index.data(NetworkModel::ItemTypeRole) != NetworkModel::BufferItemType)
@@ -262,9 +261,6 @@ void BufferView::dropEvent(QDropEvent *event)
     if (index.data(NetworkModel::BufferTypeRole) != BufferInfo::QueryBuffer)
         return QTreeView::dropEvent(event);
 
-    if (index.data(NetworkModel::NetworkIdRole).value<NetworkId>() != networkId)
-        return QTreeView::dropEvent(event);
-
     BufferId bufferId1 = index.data(NetworkModel::BufferIdRole).value<BufferId>();
     if (bufferId1 == bufferId2)
         return QTreeView::dropEvent(event);