mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 11:09:42 +00:00
Issue #61: More robust tools handling in alchemy window
This commit is contained in:
parent
1cc2c2055f
commit
14833a4c3a
1 changed files with 5 additions and 3 deletions
|
@ -62,6 +62,8 @@ namespace MWGui
|
|||
|
||||
void AlchemyWindow::onCancelButtonClicked(MyGUI::Widget* _sender)
|
||||
{
|
||||
mAlchemy.clear();
|
||||
|
||||
mWindowManager.removeGuiMode(GM_Alchemy);
|
||||
mWindowManager.removeGuiMode(GM_Inventory);
|
||||
}
|
||||
|
@ -265,9 +267,9 @@ namespace MWGui
|
|||
{
|
||||
if (!iter->isEmpty())
|
||||
{
|
||||
mApparatus[index]->setUserString ("ToolTipType", "ItemPtr");
|
||||
mApparatus[index]->setUserData (*iter);
|
||||
mApparatus[index]->setImageTexture (getIconPath (*iter));
|
||||
mApparatus.at (index)->setUserString ("ToolTipType", "ItemPtr");
|
||||
mApparatus.at (index)->setUserData (*iter);
|
||||
mApparatus.at (index)->setImageTexture (getIconPath (*iter));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue