mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
Merge remote-tracking branch 'glorf/bugfix-4'
This commit is contained in:
commit
2cb7e1f3d5
1 changed files with 16 additions and 3 deletions
|
@ -397,11 +397,24 @@ namespace MWGui
|
||||||
|
|
||||||
void Console::setSelectedObject(const MWWorld::Ptr& object)
|
void Console::setSelectedObject(const MWWorld::Ptr& object)
|
||||||
{
|
{
|
||||||
mPtr = object;
|
if (!object.isEmpty())
|
||||||
if (!mPtr.isEmpty())
|
{
|
||||||
setTitle("#{sConsoleTitle} (" + mPtr.getCellRef().mRefID + ")");
|
if (object == mPtr)
|
||||||
|
{
|
||||||
|
setTitle("#{sConsoleTitle}");
|
||||||
|
mPtr=MWWorld::Ptr();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setTitle("#{sConsoleTitle} (" + object.getCellRef().mRefID + ")");
|
||||||
|
mPtr = object;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
setTitle("#{sConsoleTitle}");
|
setTitle("#{sConsoleTitle}");
|
||||||
|
mPtr = MWWorld::Ptr();
|
||||||
|
}
|
||||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(command);
|
MyGUI::InputManager::getInstance().setKeyFocusWidget(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue