1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-23 15:39:42 +00:00

Issue #61: More robust tools handling in alchemy window

This commit is contained in:
Marc Zinnschlag 2012-10-02 10:20:49 +02:00
parent 1cc2c2055f
commit 14833a4c3a

View file

@ -62,6 +62,8 @@ namespace MWGui
void AlchemyWindow::onCancelButtonClicked(MyGUI::Widget* _sender) void AlchemyWindow::onCancelButtonClicked(MyGUI::Widget* _sender)
{ {
mAlchemy.clear();
mWindowManager.removeGuiMode(GM_Alchemy); mWindowManager.removeGuiMode(GM_Alchemy);
mWindowManager.removeGuiMode(GM_Inventory); mWindowManager.removeGuiMode(GM_Inventory);
} }
@ -265,9 +267,9 @@ namespace MWGui
{ {
if (!iter->isEmpty()) if (!iter->isEmpty())
{ {
mApparatus[index]->setUserString ("ToolTipType", "ItemPtr"); mApparatus.at (index)->setUserString ("ToolTipType", "ItemPtr");
mApparatus[index]->setUserData (*iter); mApparatus.at (index)->setUserData (*iter);
mApparatus[index]->setImageTexture (getIconPath (*iter)); mApparatus.at (index)->setImageTexture (getIconPath (*iter));
} }
} }
} }