forked from qt-creator/qt-creator
QML/JS editor: make QTC_ASSERT actually useful.
Change-Id: I32f2ee037b372c54ae41ea1b3626365e4f201118 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -97,9 +97,9 @@ Core::GeneratedFiles JsFileWizard::generateFiles(const QWizard *w,
|
|||||||
{
|
{
|
||||||
const Core::BaseFileWizard *wizard = qobject_cast<const Core::BaseFileWizard *>(w);
|
const Core::BaseFileWizard *wizard = qobject_cast<const Core::BaseFileWizard *>(w);
|
||||||
Utils::FileWizardPage *filePage = wizard->find<Utils::FileWizardPage>();
|
Utils::FileWizardPage *filePage = wizard->find<Utils::FileWizardPage>();
|
||||||
QTC_ASSERT(filePage, Core::GeneratedFiles());
|
QTC_ASSERT(filePage, return Core::GeneratedFiles());
|
||||||
JsFileOptionsPage *optionPage = wizard->find<JsFileOptionsPage>();
|
JsFileOptionsPage *optionPage = wizard->find<JsFileOptionsPage>();
|
||||||
QTC_ASSERT(optionPage, Core::GeneratedFiles());
|
QTC_ASSERT(optionPage, return Core::GeneratedFiles());
|
||||||
|
|
||||||
|
|
||||||
const QString path = filePage->path();
|
const QString path = filePage->path();
|
||||||
|
|||||||
Reference in New Issue
Block a user