Mercurial > hg > svapp
changeset 151:f8110d1a3a37
* Attempt to sort out strange permissions for samples?
author | Chris Cannam |
---|---|
date | Fri, 12 Dec 2008 17:06:33 +0000 |
parents | 6e8bce502be3 |
children | 6f1e64670451 |
files | audioio/AudioGenerator.cpp |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/audioio/AudioGenerator.cpp Fri Dec 12 16:03:37 2008 +0000 +++ b/audioio/AudioGenerator.cpp Fri Dec 12 17:06:33 2008 +0000 @@ -88,12 +88,18 @@ QString fileName(sampleResourceDir[i]); QFile file(sampleResourceDir.filePath(fileName)); + QString target = QDir(m_sampleDir).filePath(fileName); - if (!file.copy(QDir(m_sampleDir).filePath(fileName))) { + if (!file.copy(target)) { std::cerr << "WARNING: AudioGenerator::getSampleDir: " << "Unable to copy " << fileName.toStdString() << " into temporary directory \"" << m_sampleDir.toStdString() << "\"" << std::endl; + } else { + QFile tf(target); + tf.setPermissions(tf.permissions() | + QFile::WriteOwner | + QFile::WriteUser); } } }