* radically cleaned up / refactored midi_clock_slave.cc
[ardour.git] / libs / ardour / export_profile_manager.cc
index 600ce9e3ea9654bc636d37a2e30959ebf7c7b232..2576620ec2eeb4bf261ef07d6ad426bd27a2cdab 100644 (file)
@@ -722,6 +722,8 @@ ExportProfileManager::check_config (boost::shared_ptr<Warnings> warnings,
        /* Check format and maximum channel count */
        if (!format || !format->type()) {
                warnings->errors.push_back (_("No format selected!"));
+       } else if (!channel_config->get_n_chans()) {
+               warnings->errors.push_back (_("All channels are empty!"));
        } else if (!ExportFileFactory::check (format, channel_config->get_n_chans())) {
                warnings->errors.push_back (_("One or more of the selected formats is not compatible with this system!"));
        } else if (format->channel_limit() < channel_config->get_n_chans()) {