MACRO_BANNER_SHOW_INFO(_window, _("Failed to get timestamp for file!"));
return TRUE;
}
-strftime(buffer, sizeof(buffer), "%Y-%m-%d-%H:%M:%S", tmp);
+
+/* Bah, stupid FAT can't use : in filenames */
+strftime(buffer, sizeof(buffer), "%Y-%m-%d-%H%M%S", tmp);
if (ui->cfile)
g_free(ui->cfile);
gtk_widget_set_sensitive(ui->btn_play, FALSE);
gtk_widget_set_sensitive(ui->btn_record, FALSE);
gtk_widget_set_sensitive(ui->btn_stop, TRUE);
+} else {
+ popup_error(_window, _("Failed to start recording."));
}
return TRUE;
audio_note_ui *ui=(audio_note_ui *)data;
if (!ui->cfile) {
- MACRO_BANNER_SHOW_INFO(_window, _("No active audio note."));
+ MACRO_BANNER_SHOW_INFO(_window, _("No active audio note. Record something first."));
return TRUE;
}
gtk_widget_set_sensitive(ui->btn_play, FALSE);
gtk_widget_set_sensitive(ui->btn_record, FALSE);
gtk_widget_set_sensitive(ui->btn_stop, TRUE);
+} else {
+ popup_error(_window, _("Failed to start playing."));
}
return TRUE;
}