Commit be232338 authored by Halla Rempt's avatar Halla Rempt

BUG:342669 Don't crash when closing the last modified window

d->activeView actually was set correctly to 0, we just didn't check
that properly
parent afbc31e0
......@@ -1772,7 +1772,7 @@ void KisMainWindow::setToolbarList(QList<QAction *> toolbarList)
void KisMainWindow::slotDocumentTitleModified(const QString &caption, bool mod)
{
updateCaption(caption, mod);
updateReloadFileAction(d->activeView->document());
updateReloadFileAction(d->activeView ? d->activeView->document() : 0);
}
......
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