QskDialogSubWindow::done fixed

This commit is contained in:
Uwe Rathmann 2019-07-05 13:18:12 +02:00
parent 6fb347eef9
commit f52b8a2e46
1 changed files with 6 additions and 5 deletions

View File

@ -343,11 +343,12 @@ void QskDialogSubWindow::done( QskDialog::DialogCode result )
{ {
m_data->result = result; m_data->result = result;
if ( !isOpen() ) if ( isOpen() )
return; {
qskSetRejectOnClose( this, false ); qskSetRejectOnClose( this, false );
close(); close();
qskSetRejectOnClose( this, true );
}
Q_EMIT finished( result ); Q_EMIT finished( result );