QmlJSEditor: Do not open created component

The user can easily navigate to the new component
and in many cases the user wants to continue in the
original document.

Change-Id: Id91ed4c0adb26cf91d39be73689aec4f34034488
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2016-05-02 10:40:10 +02:00
parent dbdc3ab400
commit 000b82523b

View File

@@ -182,7 +182,9 @@ public:
changeSet.apply(&newComponentSource);
// stop if we can't create the new file
if (!refactoring.createFile(newFileName, newComponentSource))
const bool reindent = true;
const bool openEditor = false;
if (!refactoring.createFile(newFileName, newComponentSource, reindent, openEditor))
return;
if (path == QFileInfo(currentFileName).path()) {