Test show Err.

This commit is contained in:
Hiro Protagonist 2017-04-07 16:54:08 +12:00
parent 2b09a33d78
commit f5e1f89e03

View file

@ -185,7 +185,7 @@ void MainWindow::setStatus( STATUS status ) {
}
void MainWindow::showError( QString error ) {
QTimer::singleShot( 0, this, [this, error] {
QMetaObject::invokeMethod( this, [this, error] {
QMessageBox errBox;
errBox.setParent( this );
errBox.critical( 0, "Error", "An Error has occured:\n" + error );