    // TODO: Support save as for multiple files
    save_dbc_as->setEnabled(dbc()->dbcCount() == 1);
  
    // TODO: Support clipboard for multiple files
    copy_dbc_to_clipboard->setEnabled(dbc()->dbcCount() == 1);
  
  
    QList<uint8_t> sources_sorted = sources.toList();
    std::sort(sources_sorted.begin(), sources_sorted.end());
  
 
</s> remove   save_dbc_as->setEnabled(dbc()->dbcCount() == 1);
 </s> add   save_dbc_as->setEnabled(cnt == 1); </s> remove   assert(dbc()->dbcCount() > 0);
  auto &[_, dbc_file] = dbc()->dbc_files.first();

  QString fn = QFileDialog::getSaveFileName(this, tr("Save File"), QDir::cleanPath(settings.last_dir + "/untitled.dbc"), tr("DBC (*.dbc)"));
  if (!fn.isEmpty()) {
    dbc_file->saveAs(fn);
 </s> add   for (auto &[s, dbc_file] : dbc()->dbc_files) {
    if (dbc_file->isEmpty()) continue;
    QString fn = QFileDialog::getSaveFileName(this, tr("Save File"), QDir::cleanPath(settings.last_dir + "/untitled.dbc"), tr("DBC (*.dbc)"));
    if (!fn.isEmpty()) {
      dbc_file->saveAs(fn);
    } </s> remove   assert(dbc()->dbcCount() > 0);

  auto &[_, dbc_file] = dbc()->dbc_files.first();
  QGuiApplication::clipboard()->setText(dbc_file->generateDBC());
  QMessageBox::information(this, tr("Copy To Clipboard"), tr("DBC Successfully copied!"));
 </s> add   for (auto &[s, dbc_file] : dbc()->dbc_files) {
    if (dbc_file->isEmpty()) continue;
    QGuiApplication::clipboard()->setText(dbc_file->generateDBC());
    QMessageBox::information(this, tr("Copy To Clipboard"), tr("DBC Successfully copied!"));
  }
  copy_dbc_to_clipboard->setEnabled(cnt == 1);
    // TODO: Support save as for multiple files
    save_dbc_as->setEnabled(dbc()->dbcCount() == 1);
  
    // TODO: Support clipboard for multiple files
  copy_dbc_to_clipboard->setEnabled(cnt == 1);
  
  
    QList<uint8_t> sources_sorted = sources.toList();
    std::sort(sources_sorted.begin(), sources_sorted.end());
  
keep keep keep keep replace keep keep keep keep keep
 cabana: do not try to save empty wildcard DBC (#27898)

* cabana: do not try to save empty wildcard DBC

* use reference 
tools/cabana/mainwin.cc