mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 21:23:54 +00:00
Bugfix #748
This commit is contained in:
parent
93868c8bca
commit
d283f8d85f
1 changed files with 16 additions and 3 deletions
|
@ -397,11 +397,24 @@ namespace MWGui
|
|||
|
||||
void Console::setSelectedObject(const MWWorld::Ptr& object)
|
||||
{
|
||||
mPtr = object;
|
||||
if (!mPtr.isEmpty())
|
||||
setTitle("#{sConsoleTitle} (" + mPtr.getCellRef().mRefID + ")");
|
||||
if (!object.isEmpty())
|
||||
{
|
||||
if (object == mPtr)
|
||||
{
|
||||
setTitle("#{sConsoleTitle}");
|
||||
mPtr=MWWorld::Ptr();
|
||||
}
|
||||
else
|
||||
{
|
||||
setTitle("#{sConsoleTitle} (" + object.getCellRef().mRefID + ")");
|
||||
mPtr = object;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setTitle("#{sConsoleTitle}");
|
||||
mPtr = MWWorld::Ptr();
|
||||
}
|
||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(command);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue