diff --git a/src/plugins/coreplugin/editormanager/openeditorswindow.cpp b/src/plugins/coreplugin/editormanager/openeditorswindow.cpp index b91e3a0de3e..7cfde68969d 100644 --- a/src/plugins/coreplugin/editormanager/openeditorswindow.cpp +++ b/src/plugins/coreplugin/editormanager/openeditorswindow.cpp @@ -225,7 +225,7 @@ void OpenEditorsWindow::setEditors(const QList&editors, IEditor *curr // add purely restored editors which are not initialised yet foreach (EditorModel::Entry entry, model->entries()) { if (entry.editor) - return; + continue; QTreeWidgetItem *item = new QTreeWidgetItem(); QString title = entry.displayName(); item->setIcon(0, emptyIcon);