summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-28 10:39:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-28 11:50:15 +0100
commit31fc0b74425253589b2ac0dcecb9e8a2714954b4 (patch)
treecb19b41844fd1675d95ea0f29e9f7ec02cd3a629 /vcl
parentfix build for highest debugging level (diff)
downloadcore-31fc0b74425253589b2ac0dcecb9e8a2714954b4.tar.gz
core-31fc0b74425253589b2ac0dcecb9e8a2714954b4.zip
always call setDeferredProperties for dialog get/set title
Change-Id: I57f9cc8fbdb9d2a304c346e03893fa55d6a61bd5
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/builder.cxx5
-rw-r--r--vcl/source/window/dialog.cxx12
2 files changed, 15 insertions, 2 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 4cc571f21174..4cea57f7afe0 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1376,9 +1376,10 @@ void VclBuilder::setDeferredProperties()
{
if (!m_bToplevelHasDeferredProperties)
return;
- set_properties(m_pParent, m_aDeferredProperties);
- m_aDeferredProperties.clear();
+ stringmap aDeferredProperties;
+ aDeferredProperties.swap(m_aDeferredProperties);
m_bToplevelHasDeferredProperties = false;
+ set_properties(m_pParent, aDeferredProperties);
}
void VclBuilder::set_properties(Window *pWindow, const stringmap &rProps)
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 8466ab2c5057..aca80f1b3f50 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -1265,6 +1265,18 @@ bool Dialog::set_property(const OString &rKey, const OString &rValue)
return true;
}
+void Dialog::SetText(const OUString& rStr)
+{
+ setDeferredProperties();
+ SystemWindow::SetText(rStr);
+}
+
+OUString Dialog::GetText() const
+{
+ const_cast<Dialog*>(this)->setDeferredProperties();
+ return SystemWindow::GetText();
+}
+
VclBuilderContainer::VclBuilderContainer()
: m_pUIBuilder(NULL)
{