forked from qt-creator/qt-creator
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:
@@ -182,7 +182,9 @@ public:
|
|||||||
changeSet.apply(&newComponentSource);
|
changeSet.apply(&newComponentSource);
|
||||||
|
|
||||||
// stop if we can't create the new file
|
// 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;
|
return;
|
||||||
|
|
||||||
if (path == QFileInfo(currentFileName).path()) {
|
if (path == QFileInfo(currentFileName).path()) {
|
||||||
|
Reference in New Issue
Block a user