Fix console reference label not resetting when loading save

deque
scrawl 11 years ago
parent b158919c4b
commit 604d5ac000

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

@ -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();

@ -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

Loading…
Cancel
Save