sound-juicer r2252 - in trunk: . src
- From: rburton svn gnome org
- To: svn-commits-list gnome org
- Subject: sound-juicer r2252 - in trunk: . src
- Date: Mon, 18 Aug 2008 07:43:10 +0000 (UTC)
Author: rburton
Date: Mon Aug 18 07:43:10 2008
New Revision: 2252
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2252&view=rev
Log:
2008-08-18 Ross Burton <ross burtonini com>
* src/sj-extracting.c:
Don't try and move the temp file when skipping tracks (#547018,
Matthew Martin).
Modified:
trunk/ChangeLog
trunk/src/sj-extracting.c
Modified: trunk/src/sj-extracting.c
==============================================================================
--- trunk/src/sj-extracting.c (original)
+++ trunk/src/sj-extracting.c Mon Aug 18 07:43:10 2008
@@ -635,7 +635,9 @@
temp_file = build_filename (track, TRUE, NULL);
new_file = build_filename (track, FALSE, NULL);
- g_file_move (temp_file, new_file, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &error);
+ /* We could be here because the user skipped an overwrite, in which case temp_file won't exist */
+ if (g_file_query_exists (temp_file, NULL))
+ g_file_move (temp_file, new_file, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &error);
g_object_unref (temp_file);
g_object_unref (new_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]