forked from qt-creator/qt-creator
QmlDesigner: fix crash on exit
Change-Id: I2e72699dd3f49c917a28d724753e27701a930fac Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -214,7 +214,9 @@ void DesignDocument::updateFileName(const Utils::FileName & /*oldFileName*/, con
|
||||
|
||||
Utils::FileName DesignDocument::fileName() const
|
||||
{
|
||||
return editor()->document()->filePath();
|
||||
if (editor())
|
||||
return editor()->document()->filePath();
|
||||
return Utils::FileName();
|
||||
}
|
||||
|
||||
Kit *DesignDocument::currentKit() const
|
||||
|
Reference in New Issue
Block a user