diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-11 00:03:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-11 00:51:29 +0300 |
commit | 05c3c78e18253d2a9faaebea16ee4ff0474db446 (patch) | |
tree | c043bcc95a2fa917cb4aedf0adb04d33e039a694 /src/gui/chatwindow.cpp | |
parent | bb4b31241a30c16eba2506fff89b4057e4a7c6ee (diff) | |
download | manaplus-05c3c78e18253d2a9faaebea16ee4ff0474db446.tar.gz manaplus-05c3c78e18253d2a9faaebea16ee4ff0474db446.tar.bz2 manaplus-05c3c78e18253d2a9faaebea16ee4ff0474db446.tar.xz manaplus-05c3c78e18253d2a9faaebea16ee4ff0474db446.zip |
Fix compliation under gcc 4.7 snapshot.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r-- | src/gui/chatwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 0c094f7a8..a775510b0 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -420,11 +420,11 @@ void ChatWindow::prevTab() int tab = mChatTabs->getSelectedTabIndex(); - if (tab == 0) + if (tab <= 0) tab = mChatTabs->getNumberOfTabs(); tab--; - mChatTabs->setSelectedTab(tab); + mChatTabs->setSelectedTabByPos(tab); } void ChatWindow::nextTab() @@ -438,7 +438,7 @@ void ChatWindow::nextTab() if (tab == mChatTabs->getNumberOfTabs()) tab = 0; - mChatTabs->setSelectedTab(tab); + mChatTabs->setSelectedTabByPos(tab); } void ChatWindow::closeTab() |