Commit 15c86973 authored by Sergio Martins's avatar Sergio Martins
Browse files

Don't forget to accept the close event after KDialog::reject().

If we simply ignore the close event, Qt::WA_DeleteOnClose won't
have any effect and the dialog just gets hidden.

BUG: 325465
parent dacd6b01
......@@ -775,10 +775,13 @@ void IncidenceDialog::closeEvent( QCloseEvent *event )
i18nc( "@info", "Do you really want to cancel?" ),
i18nc( "@title:window", "KOrganizer Confirmation" ) ) == KMessageBox::Yes ) {
KDialog::reject(); // Discard current changes
KDialog::closeEvent( event );
} else if ( !d->isDirty() ) {
KDialog::reject(); // No pending changes, just close the dialog.
KDialog::closeEvent( event );
} else {
event->ignore();
}
event->ignore();
}
void IncidenceDialog::setInitiallyDirty( bool initiallyDirty )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment