[gnome-subtitles] FIxed bug related to the automatic translation save feature



commit e62c6ae7557ed9ae1fd9736ff4918d86e722358e
Author: Pedro Castro <mail>
Date:   Thu Feb 11 00:04:47 2010 +0000

    FIxed bug related to the automatic translation save feature

 src/GnomeSubtitles/Core/EventHandlers.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/GnomeSubtitles/Core/EventHandlers.cs b/src/GnomeSubtitles/Core/EventHandlers.cs
index 98261ae..1774258 100644
--- a/src/GnomeSubtitles/Core/EventHandlers.cs
+++ b/src/GnomeSubtitles/Core/EventHandlers.cs
@@ -45,7 +45,7 @@ public class EventHandlers {
 	public void OnFileSave (object o, EventArgs args) {
 		Base.Ui.Save();
 
-		if (Base.Config.PrefsTranslationSaveAll) {
+		if (Base.Document.IsTranslationLoaded && Base.Config.PrefsTranslationSaveAll) {
 			OnFileTranslationSave(o, args);
 		}
 	}
@@ -53,7 +53,7 @@ public class EventHandlers {
 	public void OnFileSaveAs (object o, EventArgs args) {
 		Base.Ui.SaveAs();
 		
-		if (Base.Config.PrefsTranslationSaveAll) {
+		if (Base.Document.IsTranslationLoaded && Base.Config.PrefsTranslationSaveAll) {
 			OnFileTranslationSave(o, args);
 		}
 	}



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