forked from qt-creator/qt-creator
use Core::Id for IEditorFactory::id
Change-Id: Iefd67a0461d9016b8ba0f3371df7ec6d42e188c5 Reviewed-on: http://codereview.qt-project.org/4321 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1003,8 +1003,8 @@ void MainWindow::openFileWith()
|
||||
QStringList fileNames = editorManager()->getOpenFileNames();
|
||||
foreach (const QString &fileName, fileNames) {
|
||||
bool isExternal;
|
||||
const QString editorId = editorManager()->getOpenWithEditorId(fileName, &isExternal);
|
||||
if (editorId.isEmpty())
|
||||
const Id editorId = editorManager()->getOpenWithEditorId(fileName, &isExternal);
|
||||
if (!editorId.isValid())
|
||||
continue;
|
||||
if (isExternal) {
|
||||
editorManager()->openExternalEditor(fileName, editorId);
|
||||
|
||||
Reference in New Issue
Block a user