diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp index 1b7681ad70a..0aa6c7a23fd 100644 --- a/src/plugins/debugger/debuggermainwindow.cpp +++ b/src/plugins/debugger/debuggermainwindow.cpp @@ -411,7 +411,7 @@ void Perspective::setAboutToActivateCallback(const Perspective::Callback &cb) m_aboutToActivateCallback = cb; } -void Perspective::aboutToActivate() +void Perspective::aboutToActivate() const { if (m_aboutToActivateCallback) m_aboutToActivateCallback(); diff --git a/src/plugins/debugger/debuggermainwindow.h b/src/plugins/debugger/debuggermainwindow.h index 589055b5a8b..d3e805f492f 100644 --- a/src/plugins/debugger/debuggermainwindow.h +++ b/src/plugins/debugger/debuggermainwindow.h @@ -84,7 +84,7 @@ public: using Callback = std::function; void setAboutToActivateCallback(const Callback &cb); - void aboutToActivate(); + void aboutToActivate() const; private: Perspective(const Perspective &) = delete;