Avoid warning about unused variable by actually using the variable

This commit is contained in:
Martchus 2023-06-27 20:43:23 +02:00
parent b61c600c76
commit cff96605ea
1 changed files with 3 additions and 3 deletions

View File

@ -257,11 +257,11 @@ void GuiMidiSetupDialog::accept()
void GuiMidiSetupDialog::updateFluidInfoStatus() void GuiMidiSetupDialog::updateFluidInfoStatus()
{ {
QStringList soundFontNames = m_settings->getFluidSoundFontNames(); const auto soundFontNames = m_settings->getFluidSoundFontNames();
soundFontList->clear(); soundFontList->clear();
if (!m_settings->getFluidSoundFontNames().isEmpty()) if (!soundFontNames.isEmpty())
{ {
QFileInfo fileInfo = QFileInfo(m_settings->getFluidSoundFontNames().at(0)); const auto fileInfo = QFileInfo(soundFontNames.first());
if (fileInfo.exists()) if (fileInfo.exists())
{ {
soundFontList->addItem(fileInfo.fileName()); soundFontList->addItem(fileInfo.fileName());