From c434b60768c73c22bc539d28d4f44941f804a53e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Wed, 26 Jan 2011 21:00:17 +0100
Subject: Fixed undefined behavior & removed illegal chars in QtChatTabs.


diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 134a3cc..60beb50 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -190,7 +190,8 @@ void QtChatTabs::handleTabTitleUpdated(QWidget* widget) {
 	bool accelsTaken[26];
 	int i = 0;
 	while (i < 26) {
-		accelsTaken[i++] = (i == 0); //A is used for 'switch to active tab'
+		accelsTaken[i] = (i == 0); //A is used for 'switch to active tab'
+		i++;
 	}
 	int other = tabs_->tabBar()->count();
 	while (other >= 0) {
@@ -221,7 +222,7 @@ void QtChatTabs::handleTabTitleUpdated(QWidget* widget) {
 		tabText = tabText.mid(0, accelPos) + "&" + tabText.mid(accelPos);
 	}
 	// this could be improved on some european keyboards, such as
-	// the German one (where alt-� is available) and basically
+	// the German one (where alt-B is available) and basically
 	// doesn't work on Arabic/Indic keyboards (where Latin letters
 	// aren't available), but I don't care to deal with those.
 
-- 
cgit v0.10.2-6-g49f6