missing close for the input popop added

This commit is contained in:
Uwe Rathmann 2019-02-05 10:12:11 +01:00
parent 35a0d8336b
commit 9845aa2966

View File

@ -395,6 +395,7 @@ void QskInputContext::showPanel( const QQuickItem* item )
auto popup = m_data->createPopup( panel );
popup->setPopupFlag( QskPopup::DeleteOnClose, true );
popup->setParentItem( item->window()->contentItem() );
popup->setParent( this );
@ -414,7 +415,7 @@ void QskInputContext::hidePanel( const QQuickItem* item )
if ( auto channel = m_data->channels.channel( item ) )
{
if ( channel->popup )
channel->popup->deleteLater();
channel->popup->close(); // deleteOnClose is set
if ( channel->window )
channel->window->close(); // deleteOnClose is set