kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Fixed weird source deselect bug
rodzic
7506e45d3b
commit
ce448d6852
|
@ -22,6 +22,9 @@ void SourceManager::unregisterSource(std::string name) {
|
||||||
}
|
}
|
||||||
onSourceUnregister.emit(name);
|
onSourceUnregister.emit(name);
|
||||||
if (name == selectedName) {
|
if (name == selectedName) {
|
||||||
|
if (selectedHandler != NULL) {
|
||||||
|
sources[selectedName]->deselectHandler(sources[selectedName]->ctx);
|
||||||
|
}
|
||||||
sigpath::signalPath.setInput(&nullSource);
|
sigpath::signalPath.setInput(&nullSource);
|
||||||
selectedHandler = NULL;
|
selectedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue