[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - vcl/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Thu May 21 13:59:04 UTC 2020


 vcl/source/control/tabctrl.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6218e0fc6551279f586ed5e84d4454474f2eed06
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Mar 11 14:45:10 2020 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu May 21 15:58:32 2020 +0200

    jsdialog: send selected tab and names
    
    Change-Id: I54db09a7a0311b5ed9bc0764c353b82bb99b9e41
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94620
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index cab39a8feb94..8d1806006dfe 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2194,10 +2194,12 @@ boost::property_tree::ptree TabControl::DumpAsPropertyTree()
         boost::property_tree::ptree aTab;
         aTab.put("text", GetPageText(id));
         aTab.put("id", id);
+        aTab.put("name", GetPageName(id));
         aTabs.push_back(std::make_pair("", aTab));
     }
 
     aTree.add_child("tabs", aTabs);
+    aTree.put("selected", GetCurPageId());
 
     return aTree;
 }


More information about the Libreoffice-commits mailing list