chiark / gitweb /
0-track edges cases for the last changes
[disorder] / disobedience / properties.c
index ce1cb53e48643ac11c8a53d10ca50a40e565df23..e9f61a22e21bcdd3212fa097159882b3896eb75f 100644 (file)
@@ -171,12 +171,15 @@ static void propagate_clicked(GtkButton attribute((unused)) *button,
   }
 }
 
-void properties(int ntracks, char **tracks) {
+void properties(int ntracks, const char **tracks) {
   int n, m;
   struct prefdata *f;
   GtkWidget *hbox, *vbox, *button, *label, *entry, *propagate, *content;
   GdkPixbuf *pb;
-
+  
+  /* If no tracks, do nothign */
+  if(!ntracks)
+    return;
   /* If there is a properties window open then just bring it to the
    * front.  It might not have the right values in... */
   if(properties_window) {