forked from qt-creator/qt-creator
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:
@@ -354,7 +354,8 @@ bool ToolBarBackend::isDesignModeEnabled() const
|
||||
|
||||
int ToolBarBackend::currentStyle() const
|
||||
{
|
||||
QTC_ASSERT(currentDesignDocument(), return 0);
|
||||
if (!currentDesignDocument())
|
||||
return 0;
|
||||
|
||||
auto view = currentDesignDocument()->rewriterView();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user