QmlDesigner: Silence QTC_ASSERT

This case is expected during startup.

Change-Id: I3e52b77b990833cb769bc02acaf742516d57d19a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
Thomas Hartmann
2023-01-26 16:55:16 +01:00
parent 52181f0208
commit c5cc5fe138

View File

@@ -354,7 +354,8 @@ bool ToolBarBackend::isDesignModeEnabled() const
int ToolBarBackend::currentStyle() const int ToolBarBackend::currentStyle() const
{ {
QTC_ASSERT(currentDesignDocument(), return 0); if (!currentDesignDocument())
return 0;
auto view = currentDesignDocument()->rewriterView(); auto view = currentDesignDocument()->rewriterView();