sfx2/source/dialog/versdlg.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit c973fb47ef5692069a72211405f3716fade1763e Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Apr 26 14:28:51 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Apr 26 17:10:41 2019 +0200 Resolves: tdf#124979 don't select item while list frozen Change-Id: Ifbad7984223b8d18eb353ec773705b902cab7176 Reviewed-on: https://gerrit.libreoffice.org/71367 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index 9bad2eb60013..743ecd6158e3 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -218,6 +218,7 @@ void SfxVersionDialog::Init_Impl() SfxMedium* pMedium = pObjShell->GetMedium(); uno::Sequence < util::RevisionTag > aVersions = pMedium->GetVersionList( true ); m_pTable.reset(new SfxVersionTableDtor( aVersions )); + m_xVersionBox->freeze(); for (size_t n = 0; n < m_pTable->size(); ++n) { SfxVersionInfo *pInfo = m_pTable->at( n ); @@ -227,6 +228,7 @@ void SfxVersionDialog::Init_Impl() m_xVersionBox->set_text(nLastRow, pInfo->aAuthor, 1); m_xVersionBox->set_text(nLastRow, ConvertWhiteSpaces_Impl(pInfo->aComment), 2); } + m_xVersionBox->thaw(); if (auto nCount = m_pTable->size()) m_xVersionBox->select(nCount - 1); @@ -332,8 +334,8 @@ IMPL_LINK(SfxVersionDialog, ButtonHdl_Impl, weld::Button&, rButton, void) m_pViewFrame->GetBindings().ExecuteSynchron( SID_SAVEDOC, aItems ); m_xVersionBox->freeze(); m_xVersionBox->clear(); - Init_Impl(); m_xVersionBox->thaw(); + Init_Impl(); } } else if (&rButton == m_xDeleteButton.get() && nEntry != -1) @@ -343,8 +345,8 @@ IMPL_LINK(SfxVersionDialog, ButtonHdl_Impl, weld::Button&, rButton, void) pObjShell->SetModified(); m_xVersionBox->freeze(); m_xVersionBox->clear(); - Init_Impl(); m_xVersionBox->thaw(); + Init_Impl(); } else if (&rButton == m_xOpenButton.get() && nEntry != -1) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits