[Xfce4-commits] <parole:master> Fix crash in save playlist

Sean Davis noreply at xfce.org
Fri Oct 11 11:50:56 CEST 2013


Updating branch refs/heads/master
         to 4d42b4c0f46f9d60b22e3561167e637bc8f5be3e (commit)
       from 53f336f6e184e24a4c0e694f750b64df16d723b4 (commit)

commit 4d42b4c0f46f9d60b22e3561167e637bc8f5be3e
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Aug 24 07:14:06 2013 -0400

    Fix crash in save playlist

 data/interfaces/save-playlist.ui |    4 ++++
 src/parole-medialist.c           |    6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/data/interfaces/save-playlist.ui b/data/interfaces/save-playlist.ui
index 5a2d511..b9c5be1 100644
--- a/data/interfaces/save-playlist.ui
+++ b/data/interfaces/save-playlist.ui
@@ -65,6 +65,10 @@
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="model">liststore</property>
+                <property name="rules_hint">True</property>
+                <property name="enable_search">False</property>
+                <property name="enable_grid_lines">vertical</property>
+                <property name="enable_tree_lines">True</property>
                 <signal name="cursor-changed" handler="parole_media_list_format_cursor_changed_cb" swapped="no"/>
                 <child internal-child="selection">
                   <object class="GtkTreeSelection" id="treeview-selection1"/>
diff --git a/src/parole-medialist.c b/src/parole-medialist.c
index 643ce56..774c724 100644
--- a/src/parole-medialist.c
+++ b/src/parole-medialist.c
@@ -784,8 +784,12 @@ void parole_media_list_format_cursor_changed_cb (GtkTreeView *view, ParolePlayli
     gchar *filename;
     gchar *fbasename;
     
+    // FIXME: replaces entered filename with Playlist.
     filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (data->chooser));
-    fbasename = g_path_get_basename (filename);
+    if (filename)
+        fbasename = g_path_get_basename (filename);
+    else
+        fbasename = g_strconcat (_("Playlist"), ".m3u", NULL);
     
     g_free (filename);
     


More information about the Xfce4-commits mailing list