summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp9
1 files changed, 6 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();
+}