[gitg] Do not destroy tag dialog when tagging fails
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Subject: [gitg] Do not destroy tag dialog when tagging fails
- Date: Sun, 5 Jul 2009 17:40:52 +0000 (UTC)
commit 8a8a2ecf1b4ec615fe89dd0b0d044c851a6f6bf2
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sun Jul 5 19:39:34 2009 +0200
Do not destroy tag dialog when tagging fails
gitg/gitg-window.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/gitg/gitg-window.c b/gitg/gitg-window.c
index b11c687..5f63e66 100644
--- a/gitg/gitg-window.c
+++ b/gitg/gitg-window.c
@@ -1995,11 +1995,15 @@ on_tag_dialog_response (GtkWidget *dialog, gint response, TagInfo *info)
gboolean sign = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object (info->builder, "check_button_sign")));
gchar *sha1 = gitg_revision_get_sha1 (info->revision);
- gitg_branch_actions_tag (info->window,
- sha1,
- name,
- message,
- sign);
+ if (!gitg_branch_actions_tag (info->window,
+ sha1,
+ name,
+ message,
+ sign))
+ {
+ destroy = FALSE;
+ }
+
g_free (sha1);
GitgPreferences *preferences = gitg_preferences_get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]