[pitivi] mainwindow: Fix project shown clean when missing assets replaced
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mainwindow: Fix project shown clean when missing assets replaced
- Date: Sat, 30 Apr 2016 16:05:07 +0000 (UTC)
commit a38042599dd48c55b488c4609514553941f7d002
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Apr 26 21:44:09 2016 +0200
mainwindow: Fix project shown clean when missing assets replaced
When replacements are provided for the missing assets, the project
changed and should be saveable right away.
Differential Revision: https://phabricator.freedesktop.org/D969
pitivi/mainwindow.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index d040ff4..aa5fe41 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -491,10 +491,10 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
self.app.add_accelerator("F10", "win.menu_button", None)
def showProjectStatus(self):
- dirty = self.app.project_manager.current_project.hasUnsavedModifications(
- )
+ project = self.app.project_manager.current_project
+ dirty = project.hasUnsavedModifications()
self.save_action.set_enabled(dirty)
- if self.app.project_manager.current_project.uri:
+ if project.uri:
self._menubutton_items["menu_revert_to_saved"].set_sensitive(dirty)
self.updateTitle()
@@ -991,7 +991,6 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
if response == Gtk.ResponseType.OK:
self.log("User chose a new URI for the missing file")
new_uri = chooser.get_uri()
- project_manager.current_project.setModificationState(False)
else:
dialog.hide()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]