From 3b4ba972e0c6108f2464784b39eeaaf828004f4f Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 15 Dec 2009 02:40:38 +0000 Subject: don't show update dialog if modal dialog exists or incorporation is active. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2389 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ src/update_check.c | 23 ++++++++++++++--------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index e849205e..c6e1babb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-15 + + * src/update_check.c: don't show update dialog if modal dialog exists + or incorporation is active. + 2009-12-15 * src/icons/folder-search.png: modified. diff --git a/src/update_check.c b/src/update_check.c index 94cb141d..af9fdfe7 100644 --- a/src/update_check.c +++ b/src/update_check.c @@ -33,6 +33,7 @@ #include "update_check.h" #include "manage_window.h" +#include "inc.h" #include "gtkutils.h" #include "alertpanel.h" #include "prefs_common.h" @@ -211,15 +212,19 @@ static void update_check_cb(GPid pid, gint status, gpointer data) gdk_threads_enter(); - if (result) - update_dialog(new_ver, show_dialog_always); - else if (show_dialog_always) { - if (got_version) - alertpanel_message(_("Information"), - _("Sylpheed is already the latest version."), - ALERT_NOTICE); - else - alertpanel_error(_("Couldn't get the version information.")); + if (!gtkut_window_modal_exist() && !inc_is_active()) { + if (result) + update_dialog(new_ver, show_dialog_always); + else if (show_dialog_always) { + if (got_version) + alertpanel_message(_("Information"), + _("Sylpheed is already the latest version."), + ALERT_NOTICE); + else + alertpanel_error(_("Couldn't get the version information.")); + } + } else { + debug_print("update_check_cb: modal dialog exists or incorporation is active. Disabling update dialog.\n"); } g_free(new_ver); -- cgit v1.2.3