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

gemini/sketch: Set the URL for new images to "New Image.kra"

On windows, the file dialog does not automatically add
the file extension, making the overwrite check fail. Adding
it through the URL fixes the initial check. Note that we
still have a problem when the user types in something with
the same name as an existing file but without the extension.

BUG: 333779
parent 22e888f6
......@@ -126,6 +126,7 @@ void DocumentManager::delayedNewDocument()
{
d->document->newImage("New Image", d->newDocWidth, d->newDocHeight, KoColorSpaceRegistry::instance()->rgb8());
d->document->image()->setResolution(d->newDocResolution, d->newDocResolution);
d->document->setUrl(KUrl("New Image.kra"));
}
else
{
......@@ -154,6 +155,7 @@ void DocumentManager::delayedNewDocument()
KoColor bg(background, profile);
d->document->newImage(name, width, height, profile, bg, QString(), res);
d->document->setUrl(KUrl("New Image.kra"));
}
d->temporaryFile = true;
......
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