include/sfx2/strings.hrc                              |    2 ++
 sfx2/source/devtools/DevelopmentToolDockingWindow.cxx |    4 ++++
 2 files changed, 6 insertions(+)

New commits:
commit 670fa33edd7c9da77d5cbed5c7978ef24df59f15
Author:     Amarjargal Gundjalam <amarjarga...@gmail.com>
AuthorDate: Mon Oct 31 12:24:13 2022 +0800
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Fri Nov 4 09:57:56 2022 +0100

    tdf#143641 Fix UNO Object Inspector window title
    
    When detaching the "UNO Object Inspector" window, the title is 
"LibreOfficeDev 7.x",
    and not anything related to the window. This change fixes the window title.
    
    Change-Id: I3b7c3b547e59acd108b62a537ce7ff24162d745b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142053
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Tested-by: Hossein <hoss...@libreoffice.org>
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/include/sfx2/strings.hrc b/include/sfx2/strings.hrc
index 8303722fe467..25fec7b020cf 100644
--- a/include/sfx2/strings.hrc
+++ b/include/sfx2/strings.hrc
@@ -356,6 +356,8 @@
 #define STR_WINDOW_TITLE_RENAME_TEMPLATE        
NC_("STR_WINDOW_TITLE_RENAME_TEMPLATE","Rename")
 #define STR_WINDOW_TITLE_RENAME_CATEGORY        
NC_("STR_WINDOW_TITLE_RENAME_CATEGORY","Rename Category")
 #define STR_WINDOW_TITLE_RENAME_NEW_CATEGORY    
NC_("STR_WINDOW_TITLE_RENAME_NEW_CATEGORY","New Category")
+
+#define STR_OBJECT_INSPECTOR                    NC_("STR_OBJECT_INSPECTOR", 
"UNO Object Inspector")
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx 
b/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx
index 817647ca9754..de0950a7edaf 100644
--- a/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx
+++ b/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx
@@ -17,6 +17,8 @@
 #include <sfx2/dispatch.hxx>
 #include <sfx2/objsh.hxx>
 #include <sfx2/viewfrm.hxx>
+#include <sfx2/sfxresid.hxx>
+#include <sfx2/strings.hrc>
 
 #include "SelectionChangeHandler.hxx"
 
@@ -51,6 +53,8 @@ 
DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(SfxBindings* pInputBi
     mxSelectionSupplier.set(xController, css::uno::UNO_QUERY);
 
     maObjectInspectorTreeHandler.introspect(mxRoot);
+
+    SetText(SfxResId(STR_OBJECT_INSPECTOR));
 }
 
 IMPL_LINK(DevelopmentToolDockingWindow, DocumentModelTreeViewSelectionHandler, 
weld::TreeView&,

Reply via email to