[pitivi] mainwindow: Make sure to state the project as "changed" when missing files were found



commit 054f8d77d69e5b96f2884d57c2cb53a40b2ef7bb
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Sat Jan 12 11:02:45 2013 -0300

    mainwindow: Make sure to state the project as "changed" when missing files were found
    
        + Update the title each time the project changes

 pitivi/mainwindow.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 6930a38..d0ab18f 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -606,6 +606,7 @@ class PitiviMainWindow(Gtk.Window, Loggable):
 
     def _projectChangedCb(self, project):
         self.main_actions.get_action("SaveProject").set_sensitive(True)
+        self.updateTitle()
 
     def _mediaLibrarySourceRemovedCb(self, project, asset):
         """When a clip is removed from the Media Library, tell the timeline
@@ -985,8 +986,6 @@ class PitiviMainWindow(Gtk.Window, Loggable):
             thumbnail.set_padding(0, SPACING)
             hbox.pack_start(thumbnail, False, False, 0)
 
-        # FIXME GES port, help user identify files with more information
-        # need work to be done in GES directly
         # TODO: display the filesize to help the user identify the file
         if asset.get_duration() == Gst.CLOCK_TIME_NONE:
             ## The file is probably an image, not video or audio.
@@ -1037,6 +1036,7 @@ class PitiviMainWindow(Gtk.Window, Loggable):
         if response == Gtk.ResponseType.OK:
             self.log("User chose a new URI for the missing file")
             new_uri = chooser.get_uri()
+            self.app.current.setModificationState(self, False)
         else:
             # Even if the user clicks Cancel, the discoverer keeps trying to
             # import the rest of the clips...



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