summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/mp3/tdefile_mp3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdefile-plugins/mp3/tdefile_mp3.cpp')
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdefile-plugins/mp3/tdefile_mp3.cpp b/tdefile-plugins/mp3/tdefile_mp3.cpp
index 742f0759..f6f567cf 100644
--- a/tdefile-plugins/mp3/tdefile_mp3.cpp
+++ b/tdefile-plugins/mp3/tdefile_mp3.cpp
@@ -237,7 +237,7 @@ bool KMp3Plugin::writeInfo(const KFileMetaInfo &info) const
TagLib::ID3v2::FrameFactory::instance()->setDefaultTextEncoding(TagLib::String::UTF8);
TagLib::MPEG::File file(TQFile::encodeName(info.path()).data(), false);
- if(!file.isOpen() || !TagLib::File::isWritable(file.name()))
+ if(!file.isOpen() || access(info.path().local8Bit().data(), R_OK|W_OK))
{
kdDebug(7034) << "couldn't open " << info.path() << endl;
return false;