X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.cpp;fp=src%2Fuisupport%2Fbufferview.cpp;h=046dad91b49135953ad2fb13ecc975b40bd23d30;hp=6a7baddae03fb10015057bb8a288167fa6810cdb;hb=6eefdfc697067d184a589fc8a231b16316c09106;hpb=42ab7cc22c4702716db2b8bfa1d4545169f772e6 diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index 6a7badda..046dad91 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -91,11 +91,9 @@ void BufferView::init() #if defined Q_OS_MACOS || defined Q_OS_WIN // afaik this is better on Mac and Windows - disconnect(this, SIGNAL(activated(QModelIndex)), this, SLOT(joinChannel(QModelIndex))); - connect(this, SIGNAL(activated(QModelIndex)), SLOT(joinChannel(QModelIndex))); + connect(this, &QAbstractItemView::activated, this, &BufferView::joinChannel, Qt::UniqueConnection); #else - disconnect(this, &QAbstractItemView::doubleClicked, this, &BufferView::joinChannel); - connect(this, &QAbstractItemView::doubleClicked, this, &BufferView::joinChannel); + connect(this, &QAbstractItemView::doubleClicked, this, &BufferView::joinChannel, Qt::UniqueConnection); #endif }