From 2bf29c17f579f71f05f4d1ee48d6f8781e85f650 Mon Sep 17 00:00:00 2001 From: Jan Borsodi Date: Sat, 23 Oct 2010 00:00:09 +0200 Subject: [PATCH] Made sure current player name is shown in name dialog. --- apps/openmw/mwgui/text_input.cpp | 1 - apps/openmw/mwgui/window_manager.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/text_input.cpp b/apps/openmw/mwgui/text_input.cpp index 36fa68eba..c443d62d8 100644 --- a/apps/openmw/mwgui/text_input.cpp +++ b/apps/openmw/mwgui/text_input.cpp @@ -51,7 +51,6 @@ void TextInputDialog::open() { // Make sure the edit box has focus MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit); - textEdit->setOnlyText(""); setVisible(true); } diff --git a/apps/openmw/mwgui/window_manager.cpp b/apps/openmw/mwgui/window_manager.cpp index a2b3a786f..410a86d4f 100644 --- a/apps/openmw/mwgui/window_manager.cpp +++ b/apps/openmw/mwgui/window_manager.cpp @@ -172,6 +172,7 @@ void WindowManager::updateVisible() nameDialog = new TextInputDialog(environment, gui->getViewSize()); std::string sName = getGameSettingString("sName", "Name"); nameDialog->setTextLabel(sName); + nameDialog->setTextInput(playerName); nameDialog->setNextButtonShow(nameChosen); nameDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onNameDialogDone); nameDialog->open();