feat(cpn): Play radio-generated audio in global/special function editor (#3910)

* enh(cpn): play sounds in model functions editor

* add recorded radio sounds
This commit is contained in:
Neil Horne
2023-09-04 19:52:12 +10:00
committed by GitHub
parent 8d8a50ce74
commit d3ed7c12e6
19 changed files with 45 additions and 18 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ bool displayT16ImportWarning()
void Helpers::populateFileComboBox(QComboBox * b, const QSet<QString> & set, const QString & current)
{
b->clear();
b->addItem("----");
b->addItem(CPN_STR_NONE_ITEM);
bool added = false;
// Convert set into list and sort it alphabetically case insensitive
@@ -283,7 +283,7 @@ void Helpers::populateFileComboBox(QComboBox * b, const QSet<QString> & set, con
void Helpers::getFileComboBoxValue(QComboBox * b, char * dest, int length)
{
memset(dest, 0, length+1);
if (b->currentText() != "----") {
if (b->currentText() != CPN_STR_NONE_ITEM) {
strncpy(dest, b->currentText().toLatin1(), length);
}
}