зеркало из https://github.com/mozilla/pjs.git
bug 415016 - default comment is submitted by Linux crash reporter. patch by timeless, r+a=me
This commit is contained in:
Родитель
43c5ec54b7
Коммит
3286b20164
|
@ -356,7 +356,7 @@ static void CommentChanged(GtkTextBuffer* buffer, gpointer userData)
|
||||||
gtk_text_buffer_get_start_iter(buffer, &start);
|
gtk_text_buffer_get_start_iter(buffer, &start);
|
||||||
gtk_text_buffer_get_end_iter(buffer, &end);
|
gtk_text_buffer_get_end_iter(buffer, &end);
|
||||||
const char* comment = gtk_text_buffer_get_text(buffer, &start, &end, TRUE);
|
const char* comment = gtk_text_buffer_get_text(buffer, &start, &end, TRUE);
|
||||||
if (comment[0] == '\0')
|
if (comment[0] == '\0' || gCommentFieldHint)
|
||||||
gQueryParameters.erase("Comments");
|
gQueryParameters.erase("Comments");
|
||||||
else
|
else
|
||||||
gQueryParameters["Comments"] = comment;
|
gQueryParameters["Comments"] = comment;
|
||||||
|
@ -447,13 +447,17 @@ static void UpdateURL()
|
||||||
|
|
||||||
static void UpdateEmail()
|
static void UpdateEmail()
|
||||||
{
|
{
|
||||||
|
const char* email = gtk_entry_get_text(GTK_ENTRY(gEmailEntry));
|
||||||
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gEmailMeCheck))) {
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gEmailMeCheck))) {
|
||||||
gQueryParameters["Email"] = gtk_entry_get_text(GTK_ENTRY(gEmailEntry));
|
|
||||||
gtk_widget_set_sensitive(gEmailEntry, TRUE);
|
gtk_widget_set_sensitive(gEmailEntry, TRUE);
|
||||||
} else {
|
} else {
|
||||||
gQueryParameters.erase("Email");
|
email = "";
|
||||||
gtk_widget_set_sensitive(gEmailEntry, FALSE);
|
gtk_widget_set_sensitive(gEmailEntry, FALSE);
|
||||||
}
|
}
|
||||||
|
if (email[0] == '\0' || gEmailFieldHint)
|
||||||
|
gQueryParameters.erase("Email");
|
||||||
|
else
|
||||||
|
gQueryParameters["Email"] = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void IncludeURLClicked(GtkButton* sender, gpointer userData)
|
static void IncludeURLClicked(GtkButton* sender, gpointer userData)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче