aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 8fe78cea..f83ffcfa 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1779,11 +1779,12 @@ void main_window_add_mailbox(MainWindow *mainwin)
gchar *path;
Folder *folder;
- path = input_dialog(_("Add mailbox"),
- _("Specify the location of mailbox.\n"
- "If the existing mailbox is specified, it will be\n"
- "scanned automatically."),
- "Mail");
+ path = input_dialog_with_filesel
+ (_("Add mailbox"),
+ _("Specify the location of mailbox.\n"
+ "If the existing mailbox is specified, it will be\n"
+ "scanned automatically."),
+ "Mail", GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
if (!path) return;
if (folder_find_from_path(path)) {
alertpanel_error(_("The mailbox `%s' already exists."), path);