forked from qt-creator/qt-creator
Do not force a specific editor for a file created from a wizard.
The wizards already provide a default suffix for file creation. But since the user is still free to specify something else it's better to leave it to Creator to decide which one is the proper editor. After all, this reflects how the file will be treated by Creator (including the next time it's opened). Task-number: QTCREATORBUG-2006
This commit is contained in:
@@ -199,10 +199,7 @@ Core::GeneratedFiles CppClassWizard::generateFiles(const QWizard *w, QString *er
|
||||
const QString headerFileName = Core::BaseFileWizard::buildFileName(params.path, params.headerFile, headerSuffix());
|
||||
|
||||
Core::GeneratedFile sourceFile(sourceFileName);
|
||||
sourceFile.setEditorId(QLatin1String(Constants::CPPEDITOR_ID));
|
||||
|
||||
Core::GeneratedFile headerFile(headerFileName);
|
||||
headerFile.setEditorId(QLatin1String(Constants::CPPEDITOR_ID));
|
||||
|
||||
QString header, source;
|
||||
if (!generateHeaderAndSource(params, &header, &source)) {
|
||||
|
||||
Reference in New Issue
Block a user