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:
parent
92b7e0fd66
commit
f6e7ff9071
@ -55,6 +55,7 @@ class SpinfieldToolbarController final : public ComplexToolbarController
|
||||
void Last();
|
||||
void Modify();
|
||||
void GetFocus();
|
||||
void LoseFocus();
|
||||
bool PreNotify( NotifyEvent const & rNEvt );
|
||||
|
||||
private:
|
||||
|
@ -127,9 +127,9 @@ void SpinfieldControl::GetFocus()
|
||||
|
||||
void SpinfieldControl::LoseFocus()
|
||||
{
|
||||
SpinField::GetFocus();
|
||||
SpinField::LoseFocus();
|
||||
if ( m_pSpinfieldToolbarController )
|
||||
m_pSpinfieldToolbarController->GetFocus();
|
||||
m_pSpinfieldToolbarController->LoseFocus();
|
||||
}
|
||||
|
||||
bool SpinfieldControl::PreNotify( NotifyEvent& rNEvt )
|
||||
@ -261,6 +261,11 @@ void SpinfieldToolbarController::GetFocus()
|
||||
notifyFocusGet();
|
||||
}
|
||||
|
||||
void SpinfieldToolbarController::LoseFocus()
|
||||
{
|
||||
notifyFocusLost();
|
||||
}
|
||||
|
||||
bool SpinfieldToolbarController::PreNotify( NotifyEvent const & rNEvt )
|
||||
{
|
||||
if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT )
|
||||
|
Loading…
x
Reference in New Issue
Block a user