Mercurial > pidgin
comparison src/gtksavedstatuses.c @ 12951:9eaf101af7a7
[gaim-migrate @ 15304]
If you have an existing Saved Status with a message, you can't currently
re-save it without a message. This fixes that.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Thu, 19 Jan 2006 18:20:46 +0000 |
parents | 03f690fcb78e |
children | e348ed834acc |
comparison
equal
deleted
inserted
replaced
12950:96cf4e176ff8 | 12951:9eaf101af7a7 |
---|---|
700 if (strcmp(title, dialog->original_title)) | 700 if (strcmp(title, dialog->original_title)) |
701 gaim_savedstatus_set_title(saved_status, title); | 701 gaim_savedstatus_set_title(saved_status, title); |
702 gaim_savedstatus_set_type(saved_status, type); | 702 gaim_savedstatus_set_type(saved_status, type); |
703 } | 703 } |
704 | 704 |
705 if (*unformatted != '\0') | 705 if (*unformatted == '\0') |
706 gaim_savedstatus_set_message(saved_status, NULL); | |
707 else | |
706 gaim_savedstatus_set_message(saved_status, message); | 708 gaim_savedstatus_set_message(saved_status, message); |
707 | 709 |
708 /* Set any substatuses */ | 710 /* Set any substatuses */ |
709 model = GTK_TREE_MODEL(dialog->model); | 711 model = GTK_TREE_MODEL(dialog->model); |
710 if (gtk_tree_model_get_iter_first(model, &iter)) | 712 if (gtk_tree_model_get_iter_first(model, &iter)) |