- if (myWorkshop->isSalomeMode()) {
- connect(myWorkshop, SIGNAL(salomeViewerSelection()),
- this, SLOT(onViewerSelection()));
- } else {
- connect(myWorkshop->mainWindow()->viewer(), SIGNAL(selectionChanged()),
- this, SLOT(onViewerSelection()));
- }
+ connect(myWorkshop->viewer(), SIGNAL(selectionChanged()),
+ this, SLOT(onViewerSelection()));