talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6aa5a37b201e6b5be8452f205dfb5278a8d6718f
parent 68d88ecf5cc6184de3f528b0d7ab121c40837aa9
Author: Paul <paul@claws-mail.org>
Date:   Tue, 12 May 2020 18:15:03 +0100

fix bug 4342, 'Import mbox file command doesn't work twice on a row'

Diffstat:
Msrc/import.c | 15+++++----------
1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/import.c b/src/import.c @@ -1,6 +1,6 @@ /* - * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team + * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client + * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -192,6 +192,7 @@ static void import_create(void) static void import_ok_cb(GtkWidget *widget, gpointer data) { + GtkWidget *window; const gchar *utf8mbox, *destdir; FolderItem *dest; gchar *mbox; @@ -232,15 +233,9 @@ static void import_ok_cb(GtkWidget *widget, gpointer data) g_free(mbox); return; } else { - gtk_widget_set_sensitive(file_entry, FALSE); - gtk_widget_set_sensitive(dest_entry, FALSE); - gtk_widget_set_sensitive(file_button, FALSE); - gtk_widget_set_sensitive(dest_button, FALSE); - gtk_widget_set_sensitive(ok_button, FALSE); - gtk_widget_set_sensitive(cancel_button, FALSE); - GTK_EVENTS_FLUSH(); - + window = label_window_create(_("Importing mbox file...")); import_ok = proc_mbox(dest, mbox, FALSE, NULL); + label_window_destroy(window); } g_free(mbox);