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/widgets/browserbox.h | 3 +++ src/gui/widgets/chattab.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 2bdf31237..6fdb40042 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -185,6 +185,9 @@ class BrowserBox : public gcn::Widget, TextRows &getRows() { return mTextRows; } + bool hasRows() + { return !mTextRows.empty(); } + void setAlwaysUpdate(bool n) { mAlwaysUpdate = n; } diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 45e27797d..5cbb71d79 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -139,6 +139,9 @@ class ChatTab : public Tab std::list &getRows() { return mTextOutput->getRows(); } + bool hasRows() + { return mTextOutput->hasRows(); } + void loadFromLogFile(std::string name); bool getAllowHighlight() -- cgit v1.2.3-70-g09d2