Mercurial > pidgin.yaz
diff src/plugins.c @ 1035:80a47e3b1bca
[gaim-migrate @ 1045]
thanks to bmiller for yet another patch ;)
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 31 Oct 2000 07:36:11 +0000 |
parents | 84a5d80e52f1 |
children | daad2440a642 |
line wrap: on
line diff
--- a/src/plugins.c Tue Oct 31 07:18:44 2000 +0000 +++ b/src/plugins.c Tue Oct 31 07:36:11 2000 +0000 @@ -128,8 +128,15 @@ } static void load_which_plugin(GtkWidget *w, gpointer data) { - load_plugin(gtk_file_selection_get_filename( - GTK_FILE_SELECTION(plugin_dialog))); + char *file; + + file = gtk_file_selection_get_filename( + GTK_FILE_SELECTION(plugin_dialog)); + if (file_is_dir(file, plugin_dialog)) { + return; + } + + load_plugin(file); if (plugin_dialog) gtk_widget_destroy(plugin_dialog);