Qt/GameList: Use AddAction for "Change Disc"

This commit is contained in:
spycrab 2017-09-07 20:42:11 +02:00
parent 336a185706
commit 16e99985f9
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void GameList::ShowContextMenu(const QPoint&)
else if (blob_type == DiscIO::BlobType::PLAIN)
AddAction(menu, tr("Compress ISO..."), this, &GameList::CompressISO);
QAction* change_disc = menu->addAction(tr("Change &Disc"), this, &GameList::ChangeDisc);
QAction* change_disc = AddAction(menu, tr("Change &Disc"), this, &GameList::ChangeDisc);
connect(this, &GameList::EmulationStarted, change_disc,
[change_disc] { change_disc->setEnabled(true); });