Avoid warning about unused variable by actually using the variable
This commit is contained in:
parent
b61c600c76
commit
cff96605ea
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue