From e7089e0c45e43af5aa39f9d1e5d7582c830d3fbf Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sun, 22 Aug 2010 21:28:29 +0100
Subject: Don't skip tabs for Ctrl-PgUp/Dn on reopened chats.

Resolves: #535

diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index c14f9ad..937e5e0 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -61,14 +61,14 @@ void QtChatTabs::addTab(QtTabbable* tab) {
 	/* Chat windows like to grow - don't let them */
 	setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
 	tabs_->addTab(tab, tab->windowTitle());
-	connect(tab, SIGNAL(titleUpdated()), this, SLOT(handleTabTitleUpdated()));
-	connect(tab, SIGNAL(countUpdated()), this, SLOT(handleTabTitleUpdated()));
-	connect(tab, SIGNAL(windowClosing()), this, SLOT(handleTabClosing()));
-	connect(tab, SIGNAL(windowOpening()), this, SLOT(handleWidgetShown()));
-	connect(tab, SIGNAL(wantsToActivate()), this, SLOT(handleWantsToActivate()));
-	connect(tab, SIGNAL(requestNextTab()), this, SLOT(handleRequestedNextTab()));
-	connect(tab, SIGNAL(requestActiveTab()), this, SLOT(handleRequestedActiveTab()));
-	connect(tab, SIGNAL(requestPreviousTab()), this, SLOT(handleRequestedPreviousTab()));
+	connect(tab, SIGNAL(titleUpdated()), this, SLOT(handleTabTitleUpdated()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(countUpdated()), this, SLOT(handleTabTitleUpdated()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(windowClosing()), this, SLOT(handleTabClosing()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(windowOpening()), this, SLOT(handleWidgetShown()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(wantsToActivate()), this, SLOT(handleWantsToActivate()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(requestNextTab()), this, SLOT(handleRequestedNextTab()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(requestActiveTab()), this, SLOT(handleRequestedActiveTab()), Qt::UniqueConnection);
+	connect(tab, SIGNAL(requestPreviousTab()), this, SLOT(handleRequestedPreviousTab()), Qt::UniqueConnection);
 	setSizePolicy(policy);
 }
 
-- 
cgit v0.10.2-6-g49f6