there is always a KoPart for a document

parent 5b9e1e6a
......@@ -1002,9 +1002,8 @@ bool KoDocument::openUrl(const KUrl & _url)
QFile::remove(url.toLocalFile()); // and remove the autosave file
else {
if (d->parentPart) {
if (ret) {
// Detect readonly local-files; remote files are assumed to be writable, unless we add a KIO::stat here (async).
KFileItem file(url, mimeType(), KFileItem::Unknown);
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