Qt: Only show "Filesystem" Tab when game is disc based

This commit is contained in:
spycrab 2017-08-25 20:32:07 +02:00
parent a861c5772d
commit 2630fa0ce9
1 changed files with 7 additions and 2 deletions

View File

@ -17,9 +17,14 @@ PropertiesDialog::PropertiesDialog(QWidget* parent, const GameFile& game) : QDia
QTabWidget* tab_widget = new QTabWidget(this);
InfoWidget* info = new InfoWidget(game);
FilesystemWidget* filesystem = new FilesystemWidget(game);
tab_widget->addTab(info, tr("Info"));
if (DiscIO::IsDisc(game.GetPlatformID()))
{
FilesystemWidget* filesystem = new FilesystemWidget(game);
tab_widget->addTab(filesystem, tr("Filesystem"));
}
layout->addWidget(tab_widget);
QDialogButtonBox* ok_box = new QDialogButtonBox(QDialogButtonBox::Ok);