summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-04-26 02:02:26 (UTC)
committer llornkcor <llornkcor>2003-04-26 02:02:26 (UTC)
commit908a099ba19192dcb341959125efce6cf0df20f1 (patch) (side-by-side diff)
treead59a689d097b1a4ffccb3ca849e936c48a9cad0
parent4a5b422ef2410d89aa1c3624da2ead151d815ecd (diff)
downloadopie-908a099ba19192dcb341959125efce6cf0df20f1.zip
opie-908a099ba19192dcb341959125efce6cf0df20f1.tar.gz
opie-908a099ba19192dcb341959125efce6cf0df20f1.tar.bz2
change playlist file access mode when writing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp2
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 795feaf..c6de5e6 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -1269,5 +1269,5 @@ void PlayListWidget::writem3u() {
if( d->selectedFiles->first()) {
- m3uList = new Om3u(filename, IO_ReadWrite);
+ m3uList = new Om3u(filename, IO_ReadWrite | IO_Truncate);
do {
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index e9615f1..580460e 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -742,5 +742,5 @@ void PlayListWidget::writem3u() {
if( d->selectedFiles->first()) { //ramble through playlist view
- m3uList = new Om3u( filename, IO_ReadWrite);
+ m3uList = new Om3u( filename, IO_ReadWrite | IO_Truncate);
do {