1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 11_fix_dcc_close_message.dpatch by Pedro Villavicencio Garrido <pvillavi@gnome.cl>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix incorrect Warning message when quitting with DCC chat active (207929)
8
diff -Naur xchat-2.8.2foo/src/fe-gtk/maingui.c xchat-2.8.2/src/fe-gtk/maingui.c
9
--- xchat-2.8.2foo/src/fe-gtk/maingui.c 2007-04-01 10:59:09.000000000 +0200
10
+++ xchat-2.8.2/src/fe-gtk/maingui.c 2007-06-10 15:58:37.000000000 +0200
11
@@ -1639,6 +1639,24 @@
36
@@ -1646,9 +1664,16 @@
40
- dialog = gtk_message_dialog_new (NULL, 0,
41
- GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO,
42
- _("Some file transfers still active, quit xchat?"));
43
+ if(mg_dcc_ischat()){
44
+ dialog = gtk_message_dialog_new (NULL, 0,
45
+ GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO,
46
+ _("Some DCC Chats still active, quit xchat?"));
48
+ dialog = gtk_message_dialog_new(NULL, 0,
49
+ GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO,
50
+ _("Some file transfers still active, quit xchat?"));
53
g_signal_connect (G_OBJECT (dialog), "response",
54
G_CALLBACK (mg_dcc_cb), NULL);
55
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);