From d4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jul 2011 01:21:01 +0300 Subject: Add hasRows to chattab class. --- src/gui/chatwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/chatwindow.cpp') 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()) { -- cgit v1.2.3-70-g09d2