forked from qt-creator/qt-creator
QmlDesigner: Remove QTC_ASSERT
This crashes if edit3DWidget() is null and we check below. Change-Id: If993b73461fb442fb6d668ba9fc15c46ea763a11 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -210,8 +210,6 @@ void Edit3DView::modelAttached(Model *model)
|
||||
|
||||
void Edit3DView::modelAboutToBeDetached(Model *model)
|
||||
{
|
||||
QTC_ASSERT(edit3DWidget()->canvas(), return);
|
||||
|
||||
// Hide the canvas when model is detached (i.e. changing documents)
|
||||
if (edit3DWidget() && edit3DWidget()->canvas()) {
|
||||
m_canvasCache.insert(model, edit3DWidget()->canvas()->renderImage());
|
||||
|
||||
Reference in New Issue
Block a user