mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Updated description dialog (from create class) to use WindowManager::removeDialog.
This commit is contained in:
parent
506f61d254
commit
6d71094f3b
@ -701,8 +701,6 @@ void CreateClassDialog::onSkillSelected()
|
||||
|
||||
void CreateClassDialog::onDescriptionClicked(MyGUI::Widget* _sender)
|
||||
{
|
||||
if (descDialog)
|
||||
delete descDialog;
|
||||
descDialog = new DescriptionDialog(environment, environment.mWindowManager->getGui()->getViewSize());
|
||||
descDialog->setTextInput(description);
|
||||
descDialog->eventDone = MyGUI::newDelegate(this, &CreateClassDialog::onDescriptionEntered);
|
||||
@ -712,7 +710,7 @@ void CreateClassDialog::onDescriptionClicked(MyGUI::Widget* _sender)
|
||||
void CreateClassDialog::onDescriptionEntered()
|
||||
{
|
||||
description = descDialog->getTextInput();
|
||||
descDialog->setVisible(false);
|
||||
environment.mWindowManager->removeDialog(descDialog);
|
||||
}
|
||||
|
||||
void CreateClassDialog::onOkClicked(MyGUI::Widget* _sender)
|
||||
|
Loading…
x
Reference in New Issue
Block a user