diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-26 14:28:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-26 17:10:41 +0200 |
commit | c973fb47ef5692069a72211405f3716fade1763e (patch) | |
tree | c1e5a2b089a140be68d7eaef6b94e7f31758e40c /sfx2 | |
parent | 9c3e5875e827c04e6dc029bba1ac179eb2484c29 (diff) |
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 <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/versdlg.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |