Browse Source

Fix [issue 24] fbo source not highlighted as active in sources editor when the selected surface has it assigned

master
Krisjanis Rijnieks 11 years ago
parent
commit
8a920b087e
  1. 9
      src/UserInterface/SourcesEditor.cpp

9
src/UserInterface/SourcesEditor.cpp

@ -133,7 +133,14 @@ namespace piMapper {
fboSelector->enable();
}
BaseSource* source = surfaceManager->getSelectedSurface()->getSource();
selectSourceRadioButton(source->getPath());
// TODO: getPath should be replaced with something like getId() as now we
// use paths for loadable sources and names for FBOs
if (source->getType() == SourceType::SOURCE_TYPE_FBO) {
selectSourceRadioButton(source->getName());
} else {
selectSourceRadioButton(source->getPath());
}
}
void SourcesEditor::setSurfaceManager(SurfaceManager* newSurfaceManager) {

Loading…
Cancel
Save