summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-02 01:21:01 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-02 01:21:01 +0300
commitd4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa (patch)
tree5d015150f676742ade0613f29c438079bbe223ca /src/gui/chatwindow.cpp
parent5628da8ff17266f9bf7d5830a5e32270be31afe4 (diff)
downloadManaVerse-d4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa.tar.gz
ManaVerse-d4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa.tar.bz2
ManaVerse-d4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa.tar.xz
ManaVerse-d4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa.zip
Add hasRows to chattab class.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 1829a55ba..0d45590ba 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -718,7 +718,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event)
mChatInput->isVisible())
{
ChatTab *tab = getFocused();
- if (tab && (unsigned)tab->getRows().size() > 0)
+ if (tab && tab->hasRows())
{
if (!mChatHistoryIndex)
{
@@ -750,7 +750,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event)
mChatInput->isVisible())
{
ChatTab *tab = getFocused();
- if (tab && !tab->getRows().empty())
+ if (tab && tab->hasRows())
{
if (mChatHistoryIndex + 1 < tab->getRows().size())
{