From f77a6feaee829ac7273faa119c07c6f3566deaef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Jul 2012 00:58:18 +0300 Subject: Add support for clear npc dialog by command from server (evol only). --- src/gui/npcdialog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/npcdialog.cpp') diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 116935afd..567fcda06 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -334,9 +334,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) } else if (event.getId() == "clear") { - mTextBox->clearRows(); -// mTextBox->addRow(mNewText); -// setText(mNewText); + clearRows(); } else if (event.getId() == "close") { @@ -760,3 +758,8 @@ void NpcDialog::logic() } } } + +void NpcDialog::clearRows() +{ + mTextBox->clearRows(); +} -- cgit v1.2.3-60-g2f50