From 908a099ba19192dcb341959125efce6cf0df20f1 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 26 Apr 2003 02:02:26 +0000 Subject: change playlist file access mode when writing --- 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 @@ -1268,7 +1268,7 @@ void PlayListWidget::writem3u() { filename += ".m3u"; if( d->selectedFiles->first()) { - m3uList = new Om3u(filename, IO_ReadWrite); + m3uList = new Om3u(filename, IO_ReadWrite | IO_Truncate); do { m3uList->add( d->selectedFiles->current()->file()); 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 @@ -741,7 +741,7 @@ void PlayListWidget::writem3u() { filename += ".m3u"; if( d->selectedFiles->first()) { //ramble through playlist view - m3uList = new Om3u( filename, IO_ReadWrite); + m3uList = new Om3u( filename, IO_ReadWrite | IO_Truncate); do { m3uList->add( d->selectedFiles->current()->file()); -- cgit v0.9.0.2