Commit 9005226c authored by Boudewijn Rempt's avatar Boudewijn Rempt

Do not miss the dot when appending the extension

Patch by Tobias Hintze
CCMAIL:th-git@kogmbh.com
parent b2069baf
......@@ -246,7 +246,7 @@ QString KoFileDialog::url()
;
}
if (d->type == SaveFile && QFileInfo(url).suffix().isEmpty()) {
int start = d->defaultFilter.lastIndexOf("*.") + 2;
int start = d->defaultFilter.lastIndexOf("*.") + 1;
int end = d->defaultFilter.lastIndexOf(" )");
int n = end - start;
QString extension = d->defaultFilter.mid(start, n);
......
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