talons

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

commit bccb77e8ec81e64bb3701ad8ef9aa0ea31241d5f
parent f49311ecc6e00c5eccee20c1948b7377112cddd3
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 | 13++++---------
1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/import.c b/src/import.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2019 the Claws Mail team and Hiroyuki Yamamoto + * 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 @@ -186,6 +186,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; @@ -226,15 +227,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);