Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Miguel Lopez
Krita
Commits
af650d54
Commit
af650d54
authored
May 08, 2014
by
Arjen Hiemstra
Browse files
sketch: Check that we have a document before calling isModfied on it
BUG: 334369
parent
583eca10
Changes
1
Hide whitespace changes
Inline
Side-by-side
krita/sketch/KisSketchView.cpp
View file @
af650d54
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment