diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-10 08:11:48 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-10 08:11:48 -0600 |
commit | 443a10db52e909c4c2a33543795ec8837547e973 (patch) | |
tree | fc8fff5e1dbd5e171974919186f6356ffce7b6ff /src/net/npchandler.cpp | |
parent | 03507766fa4ee07491b7ee702093669de6222c9c (diff) | |
download | mana-client-443a10db52e909c4c2a33543795ec8837547e973.tar.gz mana-client-443a10db52e909c4c2a33543795ec8837547e973.tar.bz2 mana-client-443a10db52e909c4c2a33543795ec8837547e973.tar.xz mana-client-443a10db52e909c4c2a33543795ec8837547e973.zip |
Made it so that when windows load previous states, they are never
smaller than the minimum width and height (a check that should have
been enforced in the first place), as well as modified the NPC list and
text dialogs to remember where they were when they were moved or resized
last.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/net/npchandler.cpp')
-rw-r--r-- | src/net/npchandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index 41af4467..60a77af1 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -60,7 +60,6 @@ void NPCHandler::handleMessage(MessageIn *msg) current_npc = msg->readInt32(); player_node->setAction(LocalPlayer::STAND); npcListDialog->parseItems(msg->readString(msg->getLength() - 8)); - npcListDialog->setVisible(true); npcListDialog->requestFocus(); break; @@ -69,7 +68,7 @@ void NPCHandler::handleMessage(MessageIn *msg) current_npc = msg->readInt32(); player_node->setAction(LocalPlayer::STAND); npcTextDialog->addText(msg->readString(msg->getLength() - 8)); - npcTextDialog->setVisible(true); + npcTextDialog->requestFocus(); break; case SMSG_NPC_CLOSE: |