/* Complicated by the need to resolve aliases. We can save a bit of effort
* by re-using cbd though. */
cn->flags &= ~CN_GETTING_FILES;
- cn->flags |= CN_RESOLVING_FILES;
- cn->pending = nvec;
- for(n = 0; n < nvec; ++n)
- disorder_eclient_resolve(client, got_resolved_file, vec[n], cbd);
+ if((cn->pending = nvec)) {
+ cn->flags |= CN_RESOLVING_FILES;
+ for(n = 0; n < nvec; ++n)
+ disorder_eclient_resolve(client, got_resolved_file, vec[n], cbd);
+ }
}
/** @brief Called with an alias resolved filename */
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) {