MainWindow: Don't use get_active_view() to determine active session
authorSoeren Apel <soeren@apelpie.net>
Tue, 11 Oct 2016 13:55:55 +0000 (15:55 +0200)
committerSoeren Apel <soeren@apelpie.net>
Sun, 4 Dec 2016 13:37:37 +0000 (14:37 +0100)
commit33bedfc1262f3a6772f6a741144baf90790297fb
tree32477bfa0859090d1addae324c73a3c91575f167
parent4df7756e87d3acfdd71603c2105c0ef54e58cc85
MainWindow: Don't use get_active_view() to determine active session

While it would be neat if it worked, it unfortunately doesn't as
the currently focused item may not be related to any view - e.g.
when one of the tabs of the QTabWidget was clicked.
For this reason, we store the last session the user interacted
with and treat it as the currently focused session.
pv/mainwindow.cpp
pv/mainwindow.hpp