From 11c043f6b37006f0c4eb9cda1d344d5c7f05ad68 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 12 Nov 2024 15:23:26 +0100 Subject: [PATCH] Axivion: Fix filter help button enabled state Explicitly reset project info when switching dashboards and update the toolbar. Drive by change of silencing another occurrence of running into 'NetworkError () 301'. Change-Id: I9eb142a02e7ccccb1a38e2f6fb6c8b9b4e1cb299 Reviewed-by: Daniel Hofmann Reviewed-by: hjk --- src/plugins/axivion/axivionplugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/axivion/axivionplugin.cpp b/src/plugins/axivion/axivionplugin.cpp index cbb62c75b0d..28fb094ae22 100644 --- a/src/plugins/axivion/axivionplugin.cpp +++ b/src/plugins/axivion/axivionplugin.cpp @@ -1013,7 +1013,7 @@ void AxivionPluginPrivate::enableInlineIssues(bool enable) return; m_inlineIssuesEnabled = enable; - if (enable) + if (enable && m_dashboardServerId.isValid()) handleOpenedDocs(); else clearAllMarks(); @@ -1087,6 +1087,8 @@ void switchActiveDashboardId(const Id &toDashboardId) dd->m_serverAccess = ServerAccess::Unknown; dd->m_apiToken.reset(); dd->m_dashboardInfo.reset(); + dd->m_currentProjectInfo.reset(); + updatePerspectiveToolbar(); } const std::optional currentDashboardInfo()