[cheese/gnome-3-2] Use video path for trashing videos, bug 670178



commit f8a865a595202bea535df0c7910973e6bbd771f6
Author: Changbin Shao <changbin shao intel com>
Date:   Thu Feb 16 08:24:14 2012 +0000

    Use video path for trashing videos, bug 670178
    
    The photo path was used for deleting videos, which would fail if the
    paths were different.

 src/cheese-window.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index d0c8bb5..0b86d89 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -287,7 +287,7 @@ public class Cheese.MainWindow : Gtk.Window
 
       while ((file_info = enumerator.next_file (null)) != null)
       {
-        file_to_trash = File.new_for_path (fileutil.get_photo_path () + GLib.Path.DIR_SEPARATOR_S + file_info.get_name ());
+        file_to_trash = File.new_for_path (fileutil.get_video_path () + GLib.Path.DIR_SEPARATOR_S + file_info.get_name ());
         file_to_trash.trash (null);
       }
     } catch (Error e)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]