summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-31 00:58:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-31 00:58:18 +0300
commitf77a6feaee829ac7273faa119c07c6f3566deaef (patch)
treec95911eb33fc340884a901ec7a09e74b07c95f16 /src/gui
parentf28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9 (diff)
downloadmanaplus-f77a6feaee829ac7273faa119c07c6f3566deaef.tar.gz
manaplus-f77a6feaee829ac7273faa119c07c6f3566deaef.tar.bz2
manaplus-f77a6feaee829ac7273faa119c07c6f3566deaef.tar.xz
manaplus-f77a6feaee829ac7273faa119c07c6f3566deaef.zip
Add support for clear npc dialog by command from server (evol only).
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/npcdialog.cpp9
-rw-r--r--src/gui/npcdialog.h2
2 files changed, 8 insertions, 3 deletions
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();
+}
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h
index e3cc274c8..cd5f7fe57 100644
--- a/src/gui/npcdialog.h
+++ b/src/gui/npcdialog.h
@@ -200,6 +200,8 @@ class NpcDialog : public Window, public gcn::ActionListener,
void logic();
+ void clearRows();
+
private:
typedef std::list<NpcDialog*> DialogList;
static DialogList instances;