Kaydet (Commit) 02e5ff1d authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#117046 messages set after dialog created should affect size

Change-Id: I03688ec1d869720b4a042602ff1da15727174592
Reviewed-on: https://gerrit.libreoffice.org/53046Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst fe3d5766
......@@ -2451,6 +2451,7 @@ void MessageDialog::set_primary_text(const OUString &rPrimaryString)
{
m_pPrimaryMessage->SetText(m_sPrimaryString);
m_pPrimaryMessage->Show(!m_sPrimaryString.isEmpty());
MessageDialog::SetMessagesWidths(this, m_pPrimaryMessage, !m_sSecondaryString.isEmpty() ? m_pSecondaryMessage.get() : nullptr);
}
}
......@@ -2461,6 +2462,7 @@ void MessageDialog::set_secondary_text(const OUString &rSecondaryString)
{
m_pSecondaryMessage->SetText("\n" + m_sSecondaryString);
m_pSecondaryMessage->Show(!m_sSecondaryString.isEmpty());
MessageDialog::SetMessagesWidths(this, m_pPrimaryMessage, !m_sSecondaryString.isEmpty() ? m_pSecondaryMessage.get() : nullptr);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment