Commit af650d54 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

sketch: Check that we have a document before calling isModfied on it

BUG: 334369
parent 583eca10
...@@ -219,7 +219,10 @@ QString KisSketchView::fileTitle() const ...@@ -219,7 +219,10 @@ QString KisSketchView::fileTitle() const
bool KisSketchView::isModified() const bool KisSketchView::isModified() const
{ {
return d->doc->isModified(); if(d->doc)
return d->doc->isModified();
return false;
} }
void KisSketchView::setFile(const QString& file) void KisSketchView::setFile(const QString& file)
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