Fix console reference label not resetting when loading save

This commit is contained in:
scrawl 2014-06-12 21:46:23 +02:00
parent b158919c4b
commit 604d5ac000
3 changed files with 9 additions and 1 deletions

View file

@ -435,4 +435,10 @@ namespace MWGui
{ {
setSelectedObject(MWWorld::Ptr()); setSelectedObject(MWWorld::Ptr());
} }
void Console::resetReference()
{
ReferenceInterface::resetReference();
setSelectedObject(MWWorld::Ptr());
}
} }

View file

@ -66,6 +66,8 @@ namespace MWGui
void executeFile (const std::string& path); void executeFile (const std::string& path);
virtual void resetReference ();
protected: protected:
virtual void onReferenceUnavailable(); virtual void onReferenceUnavailable();

View file

@ -17,7 +17,7 @@ namespace MWGui
void checkReferenceAvailable(); ///< closes the window, if the MW-reference has become unavailable void checkReferenceAvailable(); ///< closes the window, if the MW-reference has become unavailable
void resetReference() { mPtr = MWWorld::Ptr(); mCurrentPlayerCell = NULL; } virtual void resetReference() { mPtr = MWWorld::Ptr(); mCurrentPlayerCell = NULL; }
protected: protected:
virtual void onReferenceUnavailable() = 0; ///< called when reference has become unavailable virtual void onReferenceUnavailable() = 0; ///< called when reference has become unavailable