From a7810673de828fec0861c11062491adaa85c8a00 Mon Sep 17 00:00:00 2001 From: Māris Nartišs Date: Wed, 18 Mar 2026 10:56:36 +0000 Subject: DolphinTabPage: Prevent re-entrant signal activation for slotViewActivated When switching tabs with split view enabled and the filter bar visible, a storm of activation calls is triggered and at the end signal/slot connections for both views is a mess (no listeners, navigation buttons linked to unfocused view etc.). Disconnect DolphinTabPage slot when it changes its own state. BUG: 508554, 512011, 508405, 511076, 503576 --- src/dolphintabpage.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/dolphintabpage.h') diff --git a/src/dolphintabpage.h b/src/dolphintabpage.h index b6135d360..421496ce9 100644 --- a/src/dolphintabpage.h +++ b/src/dolphintabpage.h @@ -204,6 +204,15 @@ private: */ void startExpandViewAnimation(DolphinViewContainer *expandingContainer); + /** + * Connect/disconnect DolphinView::activated → slotViewActivated for all + * current view containers. Used to suppress the signal during programmatic + * activation (tab switch, construction, session restore) so that + * slotViewActivated does not spuriously toggle m_primaryViewActive. + */ + void connectViewActivatedSignals(); + void disconnectViewActivatedSignals(); + private: DolphinTabPageSplitter *m_splitter; -- cgit v1.3