Fixed that File > Open With was not working with already open file

It was just activating the existing editor, instead of reopening with
the new editor type.

Change-Id: I1fee08d1df1d78a32298d222a09cf05cf9433f19
Task-number: QTCREATORBUG-14336
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-05-20 14:27:36 +02:00
parent b67ebf9ffc
commit b281869b25

View File

@@ -843,7 +843,7 @@ void MainWindow::openFileWith()
if (isExternal)
EditorManager::openExternalEditor(fileName, editorId);
else
EditorManager::openEditor(fileName, editorId);
EditorManagerPrivate::openEditorWith(fileName, editorId);
}
}