[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 10 19:40:41 UTC 2020
svx/source/tbxctrls/tbcontrl.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit ea1182c8c2c42c0c527e232f7e392196796940d7
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jun 10 12:16:17 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jun 10 21:40:04 2020 +0200
grab focus to style combobox when parent gets focus
Change-Id: Iaee1a8399e8e4f70a52ce99be113e9e7607a5ab7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96019
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 70288fcd23ba..732ad7d9f835 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -263,7 +263,13 @@ private:
InterimItemWindow::Disable();
}
- virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
+ virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
+ virtual void GetFocus() override
+ {
+ if (m_xWidget)
+ m_xWidget->grab_focus();
+ InterimItemWindow::GetFocus();
+ }
void SetOptimalSize();
};
More information about the Libreoffice-commits
mailing list