desktop/source/deployment/gui/dp_gui_service.cxx   |    2 +-
 desktop/source/deployment/gui/dp_gui_theextmgr.cxx |    6 +++---
 desktop/source/deployment/gui/dp_gui_theextmgr.hxx |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit c8a531500bb9e7721d99fd21bcc8149cfb7f0ae9
Author:     Michael Weghorn <[email protected]>
AuthorDate: Mon Feb 23 18:27:53 2026 +0100
Commit:     Adolfo Jayme Barrientos <[email protected]>
CommitDate: Wed Mar 4 19:11:15 2026 +0100

    tdf#170805 extension mgr: Use more specific weld::Dialog
    
    Return and use the more specific weld::Dialog
    subclass in TheExtensionManager::getDialog
    instead of just weld::Window.
    
    Change-Id: I931864f8117af87386761f0838b4f3970d9d8c62
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200150
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>
    (cherry picked from commit f379e1c62b6303189d1223d2b6233cf3bf1072d0)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200270
    Reviewed-by: Adolfo Jayme Barrientos <[email protected]>

diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx 
b/desktop/source/deployment/gui/dp_gui_service.cxx
index 2045e4e52c4d..1a9c1f90b7ca 100644
--- a/desktop/source/deployment/gui/dp_gui_service.cxx
+++ b/desktop/source/deployment/gui/dp_gui_service.cxx
@@ -182,7 +182,7 @@ void ServiceImpl::setDialogTitle( OUString const & title )
     if ( dp_gui::TheExtensionManager::s_ExtMgr.is() )
     {
         const SolarMutexGuard guard;
-        if (weld::Window* pDialog = 
dp_gui::TheExtensionManager::s_ExtMgr->getDialog())
+        if (weld::Dialog* pDialog = 
dp_gui::TheExtensionManager::s_ExtMgr->getDialog())
             pDialog->set_title(title);
     }
 }
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx 
b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
index 04d1e08077db..c2f0b5c354ad 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
@@ -148,7 +148,7 @@ void TheExtensionManager::SetText( const OUString &rTitle )
 {
     const SolarMutexGuard guard;
 
-    if (weld::Window* pDialog = getDialog())
+    if (weld::Dialog* pDialog = getDialog())
         pDialog->set_title( rTitle );
 }
 
@@ -157,7 +157,7 @@ void TheExtensionManager::ToTop()
 {
     const SolarMutexGuard guard;
 
-    if (weld::Window* pDialog = getDialog())
+    if (weld::Dialog* pDialog = getDialog())
         pDialog->present();
 }
 
@@ -196,7 +196,7 @@ sal_Int16 TheExtensionManager::execute()
 
 bool TheExtensionManager::isVisible()
 {
-    weld::Window* pDialog = getDialog();
+    weld::Dialog* pDialog = getDialog();
     return pDialog && pDialog->get_visible();
 }
 
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.hxx 
b/desktop/source/deployment/gui/dp_gui_theextmgr.hxx
index dbfe0b76ff3f..0a2cb5813f49 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.hxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.hxx
@@ -68,7 +68,7 @@ public:
     bool isModified() const { return m_bModified; }
     void clearModified() { m_bModified = false; }
 
-    weld::Window* getDialog()
+    weld::Dialog* getDialog()
     {
         if (m_xExtMgrDialog)
             return m_xExtMgrDialog->getDialog();

Reply via email to