Permalink
Browse files

Qt/InfoWidget: Don't show banner details if no data is present

  • Loading branch information...
spycrab committed May 25, 2018
1 parent a68b820 commit a19e5b3f7a87964420612dfd6e4a7f1beec292a4
Showing with 4 additions and 1 deletion.
  1. +4 −1 Source/Core/DolphinQt2/Config/InfoWidget.cpp
@@ -25,7 +25,9 @@ InfoWidget::InfoWidget(const UICommon::GameFile& game) : m_game(game)
QVBoxLayout* layout = new QVBoxLayout();
layout->addWidget(CreateISODetails());
layout->addWidget(CreateBannerDetails());
if (!game.GetLanguages().empty())
layout->addWidget(CreateBannerDetails());
setLayout(layout);
}
@@ -144,6 +146,7 @@ void InfoWidget::CreateLanguageSelector()
}
if (m_language_selector->count() == 1)
m_language_selector->setDisabled(true);
connect(m_language_selector,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
&InfoWidget::ChangeLanguage);

0 comments on commit a19e5b3

Please sign in to comment.