r18752 by craig - Set file permissions on save on unix

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 19 19:43:38 UTC 2014


Author: craig
Date: Sun Jan 19 19:43:38 2014
New Revision: 18752

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18752
Log:
Set file permissions on save on unix

Modified:
    trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18752&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format_save.cpp Sun Jan 19 19:43:38 2014
@@ -422,8 +422,12 @@
 	}
 	else if (QFile::exists(tmpFileName))
 		QFile::remove(tmpFileName);
-	if (writeSucceed) 
+	if (writeSucceed)
 		QFile::remove(tmpFileName);
+#ifdef Q_OS_UNIX
+	if (writeSucceed)
+		QFile::setPermissions(fileName, m_Doc->filePermissions());
+#endif
 	return writeSucceed;
 }
 




More information about the scribus-commit mailing list