Skip to content
Snippets Groups Projects
Commit 7c82ef08 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for segfault in add window

parent a739325b
No related branches found
No related tags found
No related merge requests found
Pipeline #28622 passed
......@@ -137,8 +137,8 @@ nanogui::Button *AddSourceWindow::_addButton(const std::string &s, nanogui::Widg
button->setTooltip(s);
button->setCallback([this, uri = s, hide]() {
ctrl_->add(uri);
if (hide) close();
ctrl_->add(uri);
});
return button;
......
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