diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index c72f5f9f94dd..7258f56393ef 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5059,7 +5059,17 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA // special values for window id if (nWindowId == static_cast(-1)) + { sWindowId = sCurrentShellId + "sidebar"; + + // force sidebar resend - for legacy mobile-wizard: {"id":"-1"} + if (aMap.size() == 1) + { + // force resend - used in mobile-wizard + jsdialog::SendFullUpdate(sCurrentShellId + "sidebar", u"Panel"_ustr); + return; + } + } if (nWindowId == static_cast(-2)) sWindowId = sCurrentShellId + "notebookbar"; if (nWindowId == static_cast(-3)) @@ -5083,10 +5093,6 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA // these dialogs are created with WindowId "0" if (!SfxViewShell::Current() && jsdialog::ExecuteAction(u"0"_ustr, sControlId, aMap)) return; - - // force resend - used in mobile-wizard - jsdialog::SendFullUpdate(sCurrentShellId + "sidebar", u"Panel"_ustr); - } catch (std::out_of_range& e) {