X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a18887b88e2ba064154ae5998db7b7533f6bb78..35ff90a0b30bf24fcb9478a3c43143c124bbff46:/include/wx/evtloop.h diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index 42b00f2d03..d77cbf13de 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -88,7 +88,7 @@ public: virtual void Exit(int rc = 0); virtual bool Pending() const; virtual bool Dispatch(); - virtual bool IsRunning() const { return m_impl != NULL; } + virtual bool IsRunning() const { return GetActive() == this; } protected: // the pointer to the port specific implementation class