Author: lluis
Date: 2007-08-14 10:01:22 -0400 (Tue, 14 Aug 2007)
New Revision: 84078

Modified:
   trunk/monodevelop/Extras/ChangeLogAddIn/AddLogEntryDialog.cs
   trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog
Log:
* AddLogEntryDialog.cs: When changing selection, get the text from the
  changes table, if it has changed. Fixes bug #82437.

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/AddLogEntryDialog.cs
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/AddLogEntryDialog.cs        
2007-08-14 14:01:22 UTC (rev 84077)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/AddLogEntryDialog.cs        
2007-08-14 14:01:22 UTC (rev 84078)
@@ -86,7 +86,11 @@
                                boxNewFile.Visible = ce.IsNew && 
!ce.CantGenerate;
                                boxNoFile.Visible = ce.CantGenerate;
                                loading = true;
-                               textview.Buffer.Text = ce.Message;
+                               string msg;
+                               if (changes.TryGetValue (ce, out msg))
+                                       textview.Buffer.Text = msg;
+                               else
+                                       textview.Buffer.Text = ce.Message;
                                int eoffset = textview.Buffer.EndIter.Offset;
                                if (!ce.IsNew && File.Exists (ce.File)) {
                                        textview.Buffer.Text += 
File.ReadAllText (ce.File);

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog   2007-08-14 14:01:22 UTC 
(rev 84077)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog   2007-08-14 14:01:22 UTC 
(rev 84078)
@@ -1,5 +1,10 @@
 2007-08-14  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * AddLogEntryDialog.cs: When changing selection, get the text from the
+         changes table, if it has changed. Fixes bug #82437.
+
+2007-08-14  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * ChangeLogAddIn.mdp, gtk-gui/gui.stetic, Makefile.am: Updated.
        * ChangeLogService.cs: Fix nullref exception.
        * CommitDialogExtensionWidget.cs: Fix warning.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to