Fixed weird source deselect bug

This commit is contained in:
Ryzerth 2021-07-26 17:17:10 +02:00
parent 7506e45d3b
commit ce448d6852

View File

@ -22,6 +22,9 @@ void SourceManager::unregisterSource(std::string name) {
}
onSourceUnregister.emit(name);
if (name == selectedName) {
if (selectedHandler != NULL) {
sources[selectedName]->deselectHandler(sources[selectedName]->ctx);
}
sigpath::signalPath.setInput(&nullSource);
selectedHandler = NULL;
}