diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-08-12 16:16:57 +0300 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-08-12 16:16:57 +0300 |
commit | 44adcdecd0abb1726d6ae778e6e37b4da431e55a (patch) | |
tree | 9daae8ee55dca04d776c6d82f33b7e5a40f4ebaf /indra/newview/llinspectobject.h | |
parent | 5de5510f58f641ddc8fca855db662d77238c134d (diff) |
EXT-8473 FIXED Fixed renaming inventory items without hitting Enter.
Problem:
The bug was caused by the fix of EXT-6682 that prematurely forgets the item
being renamed (by resetting mRenameItem) whenever the renamer input field loses focus.
That's why we couldn't actually finish renaming item.
Fix:
The code is quite messy, but I'll try to explain.
There are three cases when we should hide the renamer:
1) ESC key is hit (just hide).
2) ENTER key is hit (rename, then hide).
3) renamer loses focus (rename, then hide).
In the first two cases we manually remove the renamer from the popups
list -- by calling gViewerWindow->removePopup(mRenamer).
In the third case that's done automatically.
So, in all cases the onRenamerLost() pop-up is called that hides the renamer
and only *then* resets mRenameItem.
Not only this approach fixes the bug -- I hope it's a bit more straightforward too.
Reviewed by Seraph at https://codereview.productengine.com/secondlife/r/854/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llinspectobject.h')
0 files changed, 0 insertions, 0 deletions