diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-01-26 20:00:17 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-01-26 20:00:17 (GMT) |
commit | c434b60768c73c22bc539d28d4f44941f804a53e (patch) | |
tree | c13fcbc7599fd8ed51a22aa18c6efea4d84e1383 /Swift | |
parent | 256f9df327d13447ec110bbaebe813b86e57a610 (diff) | |
download | swift-c434b60768c73c22bc539d28d4f44941f804a53e.zip swift-c434b60768c73c22bc539d28d4f44941f804a53e.tar.bz2 |
Fixed undefined behavior & removed illegal chars in QtChatTabs.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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. |