mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 18:09:39 +00:00
Books/scrolls: Fix the take button incorrectly showing
This commit is contained in:
parent
4e1e0eaf62
commit
d5c6c221c1
1 changed files with 2 additions and 5 deletions
|
@ -160,11 +160,8 @@ namespace MWGui
|
||||||
// the "Take" button should not be visible.
|
// the "Take" button should not be visible.
|
||||||
// NOTE: the take button is "reset" when the window opens, so we can safely do the following
|
// NOTE: the take button is "reset" when the window opens, so we can safely do the following
|
||||||
// without screwing up future book windows
|
// without screwing up future book windows
|
||||||
if (mDragAndDrop->mDraggedFrom == this)
|
mWindowManager.getBookWindow()->setTakeButtonShow(false);
|
||||||
{
|
mWindowManager.getScrollWindow()->setTakeButtonShow(false);
|
||||||
mWindowManager.getBookWindow()->setTakeButtonShow(false);
|
|
||||||
mWindowManager.getScrollWindow()->setTakeButtonShow(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
mDragAndDrop->mIsOnDragAndDrop = false;
|
mDragAndDrop->mIsOnDragAndDrop = false;
|
||||||
MyGUI::Gui::getInstance().destroyWidget(mDragAndDrop->mDraggedWidget);
|
MyGUI::Gui::getInstance().destroyWidget(mDragAndDrop->mDraggedWidget);
|
||||||
|
|
Loading…
Reference in a new issue