LoseFocus incorrectly calling notifyFocusGet

looks like a cut and paste error from initial checkin

Change-Id: I816ad85c564b0ca31833da17bbe760101ed3231d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92757
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2020-04-23 12:22:14 +01:00
parent 92b7e0fd66
commit f6e7ff9071
2 changed files with 8 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ class SpinfieldToolbarController final : public ComplexToolbarController
void Last(); void Last();
void Modify(); void Modify();
void GetFocus(); void GetFocus();
void LoseFocus();
bool PreNotify( NotifyEvent const & rNEvt ); bool PreNotify( NotifyEvent const & rNEvt );
private: private:

View File

@@ -127,9 +127,9 @@ void SpinfieldControl::GetFocus()
void SpinfieldControl::LoseFocus() void SpinfieldControl::LoseFocus()
{ {
SpinField::GetFocus(); SpinField::LoseFocus();
if ( m_pSpinfieldToolbarController ) if ( m_pSpinfieldToolbarController )
m_pSpinfieldToolbarController->GetFocus(); m_pSpinfieldToolbarController->LoseFocus();
} }
bool SpinfieldControl::PreNotify( NotifyEvent& rNEvt ) bool SpinfieldControl::PreNotify( NotifyEvent& rNEvt )
@@ -261,6 +261,11 @@ void SpinfieldToolbarController::GetFocus()
notifyFocusGet(); notifyFocusGet();
} }
void SpinfieldToolbarController::LoseFocus()
{
notifyFocusLost();
}
bool SpinfieldToolbarController::PreNotify( NotifyEvent const & rNEvt ) bool SpinfieldToolbarController::PreNotify( NotifyEvent const & rNEvt )
{ {
if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT ) if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT )