Commit b22bba31 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Improve can not overwrite message

parent ea504978
Pipeline #82819 passed with stage
in 9 minutes and 26 seconds
...@@ -2549,7 +2549,7 @@ bool Part::saveAs(const QUrl &saveUrl, SaveAsFlags flags) ...@@ -2549,7 +2549,7 @@ bool Part::saveAs(const QUrl &saveUrl, SaveAsFlags flags)
if (realSaveUrl.isLocalFile()) { if (realSaveUrl.isLocalFile()) {
const QFileInfo fi(realSaveUrl.toLocalFile()); const QFileInfo fi(realSaveUrl.toLocalFile());
if (fi.exists() && !fi.isWritable()) { if (fi.exists() && !fi.isWritable()) {
KMessageBox::information(widget(), i18n("File could not be saved in '%1'. Try to save it to another location.", realSaveUrl.toLocalFile())); KMessageBox::information(widget(), i18n("File could not be saved in '%1' because it is read only. Save it to another location or change its permissions.", realSaveUrl.toLocalFile()));
return false; return false;
} }
} }
......
Supports Markdown
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