aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabBase.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-05 12:18:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-11 12:06:19 -0700
commit065423896dee0fe1cc6e2bd13e7e8d1b1cb3e181 (patch)
tree45b9664321b47bb2d4faae6d8fb233f6f6bd510a /desktop-widgets/tab-widgets/TabBase.h
parentcd5489e08d4c76b96ae0d388d9efea24134dde8d (diff)
downloadsubsurface-065423896dee0fe1cc6e2bd13e7e8d1b1cb3e181.tar.gz
Filter: add reference counting for dive-site mode
The dive-site-edit and dive-site-table tabs both put the filter into a special dive-site mode. When switching between both, it could happen that the one got its show befor the other got its hide event. Thus, the first would start dive-site filtering and the second stop it. Now the app was not in filter mode even though it should. To solve this problem, add reference counting for the filter's dive-site mode. In both tabs call the enter/exit functions on show/hide. In the dive-site-table tab, when the selection changes, use a set function that doesn't modify the reference count. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabBase.h')
0 files changed, 0 insertions, 0 deletions