summaryrefslogtreecommitdiff
path: root/src/gui/npclistdialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-24 20:19:34 -0700
committerJared Adams <jaxad0127@gmail.com>2009-02-24 20:19:34 -0700
commitb32ee882097905faea84ed73aa86620248fdefae (patch)
treeb7d038070911002bc2a11baf4427323f0c83647e /src/gui/npclistdialog.cpp
parent9759b0bd0a4777c5645c695c119b4716e251add1 (diff)
downloadmana-client-b32ee882097905faea84ed73aa86620248fdefae.tar.gz
mana-client-b32ee882097905faea84ed73aa86620248fdefae.tar.bz2
mana-client-b32ee882097905faea84ed73aa86620248fdefae.tar.xz
mana-client-b32ee882097905faea84ed73aa86620248fdefae.zip
Small dialog visibility fix
Basically ensures that the NPC text dialog is visible before making NPC input dialogs visible
Diffstat (limited to 'src/gui/npclistdialog.cpp')
-rw-r--r--src/gui/npclistdialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/npclistdialog.cpp b/src/gui/npclistdialog.cpp
index c476999a..8349cb4a 100644
--- a/src/gui/npclistdialog.cpp
+++ b/src/gui/npclistdialog.cpp
@@ -118,3 +118,10 @@ void NpcListDialog::action(const gcn::ActionEvent &event)
current_npc->dialogChoice(choice);
}
}
+
+void NpcListDialog::setVisible(bool visible)
+{
+ if (visible) npcTextDialog->setVisible(true);
+
+ Window::setVisible(visible);
+}