mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Set correct permissions for settings file on all platforms but osx and win
This commit is contained in:
@@ -99,7 +99,7 @@ TomahawkSettings::TomahawkSettings( QObject* parent )
|
|||||||
{
|
{
|
||||||
s_instance = this;
|
s_instance = this;
|
||||||
|
|
||||||
#ifdef Q_OS_LINUX
|
#if !(defined(Q_OS_MAC) && defined(Q_OS_WIN))
|
||||||
QFile file( fileName() );
|
QFile file( fileName() );
|
||||||
file.setPermissions( file.permissions() & ~( QFile::ReadGroup | QFile::WriteGroup | QFile::ExeGroup | QFile::ReadOther | QFile::WriteOther | QFile::ExeOther ) );
|
file.setPermissions( file.permissions() & ~( QFile::ReadGroup | QFile::WriteGroup | QFile::ExeGroup | QFile::ReadOther | QFile::WriteOther | QFile::ExeOther ) );
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user