diff --git a/ui/src/sceneeditor.cpp b/ui/src/sceneeditor.cpp index dbfcafa507..917c5c522a 100644 --- a/ui/src/sceneeditor.cpp +++ b/ui/src/sceneeditor.cpp @@ -334,6 +334,8 @@ void SceneEditor::init(bool applyValues) } connect(m_channelGroupsTree, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(slotChannelGroupsChanged(QTreeWidgetItem*,int))); + connect(m_tree, SIGNAL(itemSelectionChanged()), + this, SLOT(selectedFixturesChanged())); connect(m_enableChannelsButton, SIGNAL(clicked()), this, SLOT(slotEnableAll())); connect(m_disableChannelsButton, SIGNAL(clicked()), @@ -904,6 +906,11 @@ void SceneEditor::slotModeChanged(Doc::Mode mode) } +void SceneEditor::selectedFixturesChanged() +{ + slotViewModeChanged(m_tabViewAction->isChecked(), true); +} + void SceneEditor::slotViewModeChanged(bool tabbed, bool applyValues) { m_tab->blockSignals(true); diff --git a/ui/src/sceneeditor.h b/ui/src/sceneeditor.h index 05158ec616..8e226a12ff 100644 --- a/ui/src/sceneeditor.h +++ b/ui/src/sceneeditor.h @@ -176,6 +176,7 @@ public slots: private slots: /** called when the user check/uncheck a group of m_channelGroupsTree */ + void selectedFixturesChanged(); void slotChannelGroupsChanged(QTreeWidgetItem*item, int column); /** Called when the user moves a fader of the ChannelGroup console */