commit 9a2e6ba9ea17f67107c86dabda65e6b8c84841a2
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Mon Aug 9 22:47:44 2010 +0100

    Fix to stop get_current_folder assertion error

 .../playlist_display/playlist_display_actions.c    |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/playlist_display/playlist_display_actions.c 
b/plugins/playlist_display/playlist_display_actions.c
index cc8e820..62b0c0e 100644
--- a/plugins/playlist_display/playlist_display_actions.c
+++ b/plugins/playlist_display/playlist_display_actions.c
@@ -107,13 +107,14 @@ static void create_add_directories_dialog(Playlist *pl) {
         g_free(last_dir);
     }
 
-    if (gtk_dialog_run(GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
+    if (gtk_dialog_run(GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
         names = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER (dialog));
+        prefs_set_string("last_dir_browsed", 
gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER (dialog)));
+    }
 
     gtk_widget_destroy(dialog);
 
     if (names) {
-        prefs_set_string("last_dir_browsed", 
gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER (dialog)));
         gdk_threads_add_idle((GSourceFunc) add_selected_dirs_cb, names);
     }
 }
@@ -173,6 +174,7 @@ static GSList* fileselection_get_files(const gchar *title) {
     /* Handle the response */
     switch (response) {
     case GTK_RESPONSE_ACCEPT:
+        g_warning("NNN");
         new_dir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER (fc));
         prefs_set_string("last_dir_browsed", new_dir);
         g_free(new_dir);

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to