[gnome-subtitles] Set return value when the language is set



commit 45063b1ca27ff7692b444ed1933f10976d15c888
Author: Pedro Castro <mail pedrocastro org>
Date:   Sun Apr 10 19:10:29 2011 +0100

    Set return value when the language is set

 src/GnomeSubtitles/Dialog/SetLanguageDialog.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/GnomeSubtitles/Dialog/SetLanguageDialog.cs b/src/GnomeSubtitles/Dialog/SetLanguageDialog.cs
index 1be2cbb..0aec79a 100644
--- a/src/GnomeSubtitles/Dialog/SetLanguageDialog.cs
+++ b/src/GnomeSubtitles/Dialog/SetLanguageDialog.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of Gnome Subtitles.
- * Copyright (C) 2008-2009 Pedro Castro
+ * Copyright (C) 2008-2009,2011 Pedro Castro
  *
  * Gnome Subtitles is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -131,12 +131,14 @@ public abstract class SetLanguageDialog : GladeDialog {
 	protected override bool ProcessResponse (ResponseType response) {
 		if (response == ResponseType.Ok) {
 			SetSpellLanguage();
+			SetReturnValue(true);
 		}
 		return false;
 	}
 	
 	private void OnLanguageRowActivated (object o, RowActivatedArgs args) {
 		SetSpellLanguage();
+		SetReturnValue(true);
 		Destroy();
 	}
 



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