Final fixes
parent
925b958569
commit
20f973aa42
|
@ -180,6 +180,16 @@
|
|||
],
|
||||
"buildsystem": "cmake-ninja"
|
||||
},
|
||||
{
|
||||
"name": "graphviz",
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://gitlab.com/graphviz/graphviz/-/archive/stable_release_2.42.0/graphviz-stable_release_2.42.0.tar.gz",
|
||||
"sha256": "b199c4ae95159123528eeb6379b47cdaf87b3a20d94035a6ba7301bbf92b7c31"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "sirEdit",
|
||||
"buildsystem": "meson",
|
||||
|
@ -210,6 +220,12 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"cleanup": [
|
||||
"*.la",
|
||||
"*.a",
|
||||
"share",
|
||||
"include"
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -154,5 +154,14 @@ extern void sirEdit::loadFile(Gtk::Window* window, Gtk::FileChooserNative* choos
|
|||
if(files.size() != 1)
|
||||
throw; // TODO: Show error
|
||||
auto file = files[0];
|
||||
loader_thread = move(thread([window, file]() -> void { loadFileThread(window, nullptr, file); }));
|
||||
loader_thread = move(thread([window, file]() -> void {
|
||||
try {
|
||||
loadFileThread(window, nullptr, file);
|
||||
}
|
||||
catch(...) {
|
||||
sirEdit::runInGui([]() -> void {
|
||||
Gtk::manage(new Gtk::MessageDialog("Can't load file. Is it in SIR-representaiton? When not try to use the import.", false, Gtk::MessageType::MESSAGE_ERROR));
|
||||
});
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -707,6 +707,8 @@ class Overview : public Gtk::VBox {
|
|||
default:
|
||||
throw; // That should never happen
|
||||
}
|
||||
|
||||
typesSet->pack_start(*(createLabel(j.first->getName() + "." + i.first->getName() + " : " + state)), false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue