Skip to content
Snippets Groups Projects
Commit 2aaf9df6 authored by Christoph Cullmann's avatar Christoph Cullmann :ice_cream:
Browse files

allow fallback for ksavefile

allow save in dirs without write rights
BUG: 312415
parent 1d1c966b
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
#include <kde_file.h>
#include <KSaveFile>
#include <kdeversion.h>
#if 0
#define EDIT_DEBUG kDebug()
......@@ -719,6 +720,18 @@ bool TextBuffer::save (const QString &filename)
* use KSaveFile for save write + rename
*/
KSaveFile saveFile (filename);
#if KDE_IS_VERSION(4,10,3)
/**
* allow fallback if directory not writable
* fixes bug 312415
*/
saveFile.setDirectWriteFallback (true);
#endif
/**
* try to open or fail
*/
if (!saveFile.open())
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment