Verified Commit 6e0145ff authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Add error message when selecting automaton from db

parent f1eb327f
No preview for this file type
......@@ -386,8 +386,13 @@ void AutoCell::afficherErreur(QString& msg){
}
void AutoCell::initAutomate(const QString& name) {
std::cout << name.toStdString() << std::endl;
Database::getInstance().initSingletonAutomate(name);
try {
Database::getInstance().initSingletonAutomate(name);
}
catch(const char* m) {
QString msg(m);
afficherErreur(msg);
}
}
void AutoCell::changeDelai() {
......
Markdown is supported
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