Skip to content
Permalink
Browse files
Merge pull request #6036 from spycrab/qt_use_addaction
Qt/GameList: Use AddAction for "Change Disc"
  • Loading branch information
leoetlino committed Sep 7, 2017
2 parents 336a185 + 16e9998 commit 626a843
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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); });

0 comments on commit 626a843

Please sign in to comment.