changeset 12726:868d574dd83e

[gaim-migrate @ 15070] Fix this off-by-one bug that resulted from my removal of GAIM_STATUS_UNSET: (18:26:53) NSA_: go into the saved status editor and choose some status to edit. then for "Status:" select one and save the status. it will select the value for the index-1 in that select box committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 05 Jan 2006 00:39:52 +0000
parents 03f352459582
children ae51c59bf819
files src/gtksavedstatuses.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtksavedstatuses.c	Thu Jan 05 00:18:24 2006 +0000
+++ b/src/gtksavedstatuses.c	Thu Jan 05 00:39:52 2006 +0000
@@ -662,7 +662,7 @@
 		return;
 	}
 
-	type = gtk_option_menu_get_history(dialog->type);
+	type = gtk_option_menu_get_history(dialog->type) + (GAIM_STATUS_UNSET + 1);
 	message = gtk_imhtml_get_markup(dialog->message);
 	unformatted = gaim_markup_strip_html(message);