mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-27 06:02:25 -04:00
Issue #61: More robust tools handling in alchemy window
This commit is contained in:
parent
1cc2c2055f
commit
14833a4c3a
@ -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…
x
Reference in New Issue
Block a user