Test show Err.

This commit is contained in:
Hiro Protagonist 2017-04-07 16:03:24 +12:00
parent 29d47cc735
commit d19818b75d

View file

@ -189,7 +189,9 @@ void MainWindow::showError( QString error ) {
errBox->setParent( this );
errBox->critical( 0, "Error", "An Error has occured:\n" + error );
errBox->setFixedSize( 500, 200 );
errBox->open( errBox, &QMessageBox::deleteLater );
errBox->open( this, [errBox]( QAbstractButton * ) {
errBox->deleteLater();
} );
}
void MainWindow::showError( FlyCapture2::Error error ) {