Skip to content
Snippets Groups Projects
Commit b3b3d067 authored by Martin Hanzik's avatar Martin Hanzik Committed by Jan Trávníček
Browse files

Clear scene on error on load

parent 2a92cef5
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,8 @@ void MainWindow::on_actionOpen_triggered() {
}
catch (const std::exception& e) {
QMessageBox::critical(this, "Error", e.what());
this->scene->clear();
this->outputBox = nullptr;
}
}
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment