[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/noatun/modules/splitplaylist
From: Eray Ozkural <erayo () cs ! bilkent ! edu ! tr>
Date: 2003-10-21 12:32:40
[Download RAW message or body]
CVS commit by exa:
apply patch from kdozer@topicbox.com
M +12 -4 view.cpp 1.130
M +1 -1 view.h 1.46
--- kdemultimedia/noatun/modules/splitplaylist/view.cpp #1.129:1.130
@@ -450,8 +450,16 @@ protected:
-void View::saveToURL(const KURL &url)
+bool View::saveToURL(const KURL &url)
{
NoatunSaver saver(list);
- saver.save(url);
+ if(saver.save(url))
+ {
+ return true;
+ }
+ else
+ {
+ KMessageBox::error( this, i18n("Could not write to %1.").arg(url.prettyURL()) );
+ return false;
+ }
}
@@ -794,5 +802,5 @@ void View::save()
{
if (mPlaylistFile.isMalformed()) { saveAs(); return; }
- saveToURL(mPlaylistFile);
+ if(saveToURL(mPlaylistFile))
setModified(false);
}
--- kdemultimedia/noatun/modules/splitplaylist/view.h #1.45:1.46
@@ -140,5 +140,5 @@ protected:
void setupActions();
- void saveToURL(const KURL &);
+ bool saveToURL(const KURL &);
void exportTo(const KURL &);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic