summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-04 16:08:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-04 16:08:55 +0300
commitf74202392745923f9ce372a6bdcd0a45db6bcd08 (patch)
tree34804d1fb3a94060544529a781983dd108ce1586 /src/gui/npcdialog.cpp
parent27de1601aa4a952d9555cc9b1aba8630f9043af4 (diff)
downloadplus-f74202392745923f9ce372a6bdcd0a45db6bcd08.tar.gz
plus-f74202392745923f9ce372a6bdcd0a45db6bcd08.tar.bz2
plus-f74202392745923f9ce372a6bdcd0a45db6bcd08.tar.xz
plus-f74202392745923f9ce372a6bdcd0a45db6bcd08.zip
Fix possible crash in npc menu.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index dd9e79b46..12b3e1244 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -355,7 +355,7 @@ void NpcDialog::parseListItems(const std::string &itemString)
void NpcDialog::refocus()
{
if (!mItems.empty())
- mItemList->requestFocus();
+ mItemList->refocus();
}
void NpcDialog::textRequest(const std::string &defaultText)