MainWindow: Don't use get_active_view() to determine active session
[pulseview.git] / pv / mainwindow.hpp
index ae72f7082e82a2728da24b98552c4484b5f347e9..0f7ec6431705c010204628c89cc2edd13b7af093 100644 (file)
@@ -132,6 +132,7 @@ private:
        DeviceManager &device_manager_;
 
        std::list< std::shared_ptr<Session> > sessions_;
+       std::shared_ptr<Session> last_focused_session_;
 
        std::map< QDockWidget*, std::shared_ptr<views::ViewBase> > view_docks_;