diff --git a/src/plugins/coreplugin/editormanager/openeditorsview.cpp b/src/plugins/coreplugin/editormanager/openeditorsview.cpp index 1c4660874fbd06fc8e08ed06b8824b96d66f34c7..b7c6d3ac67daca56c64d6539aa87d6bba76b450d 100644 --- a/src/plugins/coreplugin/editormanager/openeditorsview.cpp +++ b/src/plugins/coreplugin/editormanager/openeditorsview.cpp @@ -70,8 +70,9 @@ OpenEditorsWidget::OpenEditorsWidget() m_ui.editorList->setModel(em->openedEditorsModel()); connect(em, SIGNAL(currentEditorChanged(Core::IEditor*)), this, SLOT(updateCurrentItem(Core::IEditor*))); - connect(m_ui.editorList, SIGNAL(activated(QModelIndex)), - this, SLOT(selectEditor(QModelIndex))); + connect(m_ui.editorList, SIGNAL(itemClicked(QTreeWidgetItem*, int)), + this, SLOT(selectEditor(QTreeWidgetItem*))); + updateEditorList(); } OpenEditorsWidget::~OpenEditorsWidget()