avoid QskComboBox::openPopup crash, when not having a window yet
This commit is contained in:
parent
1fa98ef9a2
commit
d52542c79b
@ -114,6 +114,15 @@ void QskComboBox::setPopupOpen( bool on )
|
|||||||
if ( on == isPopupOpen() )
|
if ( on == isPopupOpen() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if 1
|
||||||
|
if ( on && window() == nullptr )
|
||||||
|
{
|
||||||
|
// We need a delayed open call to avoid this problem.TODO ...
|
||||||
|
qWarning() << "QskComboBox can't be opened before being added to a scene.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
setSkinStateFlag( PopupOpen, on );
|
setSkinStateFlag( PopupOpen, on );
|
||||||
|
|
||||||
if( on )
|
if( on )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user