Rework of alertpanel default button focus handling.
[claws.git] / src / import.c
index b573bb1d1211a5c9e414d5613bd56b06195086f3..1dcd12a3cc804a327d48d3b0cd7381680bc9b359 100644 (file)
@@ -205,7 +205,7 @@ static void import_ok_cb(GtkWidget *widget, gpointer data)
        }
        if (destdir && !*destdir) {
                if (alertpanel(_("Import mbox file"), _("Destination folder is not set.\nImport mbox file to the Inbox folder?"),
-                                               GTK_STOCK_OK, GTK_STOCK_CANCEL, NULL)
+                                               GTK_STOCK_OK, GTK_STOCK_CANCEL, NULL, ALERTFOCUS_FIRST)
                        == G_ALERTALTERNATE) {
                        gtk_widget_grab_focus(dest_entry);
                        return;