cheese r655 - in branches/gnome-2-22: . src
- From: dgsiegel svn gnome org
- To: svn-commits-list gnome org
- Subject: cheese r655 - in branches/gnome-2-22: . src
- Date: Fri, 18 Apr 2008 18:58:41 +0100 (BST)
Author: dgsiegel
Date: Fri Apr 18 17:58:41 2008
New Revision: 655
URL: http://svn.gnome.org/viewvc/cheese?rev=655&view=rev
Log:
cheese crashed, when a file was deleted twice
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/cheese-window.c
Modified: branches/gnome-2-22/src/cheese-window.c
==============================================================================
--- branches/gnome-2-22/src/cheese-window.c (original)
+++ branches/gnome-2-22/src/cheese-window.c Fri Apr 18 17:58:41 2008
@@ -413,6 +413,10 @@
filename = cheese_thumb_view_get_selected_image (CHEESE_THUMB_VIEW (cheese_window->thumb_view));
g_return_if_fail (filename);
+ // return if the file does not exist, i.e. was already deleted
+ if (!g_file_test (filename, G_FILE_TEST_EXISTS))
+ return;
+
file = g_file_new_for_path (filename);
g_free(filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]