Commit 656b9f73 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

QML/JS editor: make QTC_ASSERT actually useful.



Change-Id: I32f2ee037b372c54ae41ea1b3626365e4f201118
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 12b58356
...@@ -97,9 +97,9 @@ Core::GeneratedFiles JsFileWizard::generateFiles(const QWizard *w, ...@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment