Commit 98ed8547 authored by Agata Cacko's avatar Agata Cacko

Don't use document title when warning about unsaved changes

Before this commit, Krita would use document title
(which is usually the filename that was first used
for that document without the extension).
That would cause a confusion when "Save As" feature is used
since Krita would stll hold the old name as the document title.
This commit changes it to always use the filename instead
(in the unsaved changes warning dialog).

BUG:422638
parent a72eb749
......@@ -705,11 +705,7 @@ bool KisView::queryClose()
if (document()->isModified()) {
QString name;
if (document()->documentInfo()) {
name = document()->documentInfo()->aboutInfo("title");
}
if (name.isEmpty())
name = document()->url().fileName();
name = document()->url().fileName();
if (name.isEmpty())
name = i18n("Untitled");
......
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