VclPtr: clicking on another sidebar button when navigator open crashes

Change-Id: Iafcc7246a1149a25f6d6fdfb09cf3e85227580db
This commit is contained in:
Caolán McNamara
2015-05-07 14:18:44 +01:00
parent 15532c9a1f
commit 90d8bf72d9

View File

@@ -77,7 +77,10 @@ void NavigatorWrapper::UpdateNavigator()
void NavigatorWrapper::GetFocus()
{
maNavigator->GrabFocus();
if (maNavigator)
maNavigator->GrabFocus();
else
Control::GetFocus();
}
} } // end of namespace sd::sidebar