actorid
Glorf 12 years ago
parent 93868c8bca
commit d283f8d85f

@ -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…
Cancel
Save