mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Do not assume that the GuiName or a DashboardItem is provided (closes #1006)
Do not try to load an empty URL as it triggers an assert
This commit is contained in:
@@ -103,7 +103,9 @@ void CefWebGuiModule::startOrStopGui() {
|
||||
new GUIKeyboardHandler
|
||||
);
|
||||
_instance->initialize();
|
||||
_instance->loadUrl(_url);
|
||||
if (!_url.value().empty()) {
|
||||
_instance->loadUrl(_url);
|
||||
}
|
||||
}
|
||||
if (_visible) {
|
||||
webBrowserModule->attachEventHandler(_instance.get());
|
||||
|
||||
Reference in New Issue
Block a user