diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index c7338cdb1b5159bfaf6c943801092052dea28d86..c6c038efcff0cd1a63f6e8a1ff9b5ae879f4b30f 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -1269,13 +1269,10 @@ void MainWindow::aboutToShowRecentFiles() void MainWindow::openRecentFile() { - QAction *action = qobject_cast<QAction*>(sender()); - if (!action) - return; - QString fileName = action->data().toString(); - if (!fileName.isEmpty()) { - editorManager()->openEditor(fileName); - editorManager()->ensureEditorManagerVisible(); + if (const QAction *action = qobject_cast<const QAction*>(sender())) { + const QString fileName = action->data().toString(); + if (!fileName.isEmpty()) + editorManager()->openEditor(fileName); } } diff --git a/src/plugins/designer/designerconstants.h b/src/plugins/designer/designerconstants.h index 7c2166eca8faf2b8ce117a6f9f7706fed5282b97..08595f08a31e6807c8b0c23648f4df7ce38c8e90 100644 --- a/src/plugins/designer/designerconstants.h +++ b/src/plugins/designer/designerconstants.h @@ -39,7 +39,7 @@ const char * const INFO_READ_ONLY = "DesignerXmlEditor.ReadOnly"; const char * const K_DESIGNER_XML_EDITOR_ID = "FormEditor.DesignerXmlEditor"; const char * const C_DESIGNER_XML_EDITOR = "Designer Xml Editor"; const char * const DESIGNER_XML_EDITOR_ID ="DesignerXmlEditor"; -const char * const C_DESIGNER_XML_DISPLAY_NAME = QT_TRANSLATE_NOOP("Designer", "Xml Editor"); +const char * const C_DESIGNER_XML_DISPLAY_NAME = QT_TRANSLATE_NOOP("Designer", "Form Editor"); const char * const SETTINGS_CATEGORY = "P.Designer"; const char * const SETTINGS_CATEGORY_ICON = ":/core/images/category_design.png";