Skip to content

Commit

Permalink
Fixed: Build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 22, 2016
1 parent abd3570 commit 20d1715
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/apps/client/src/ui/nativemenu.cpp
Expand Up @@ -60,11 +60,14 @@ DENG2_PIMPL(NativeMenu)

void gameReadinessUpdated() override
{
#ifdef MACOSX
mainCall.enqueue([this] () { updateGameMenuItems(); });
#endif
}

void updateGameMenuItems()
{
#ifdef MACOSX
if (!gameMenu) return;

gameMenu->clear();
Expand All @@ -76,7 +79,7 @@ DENG2_PIMPL(NativeMenu)

foreach (Game *game, allGames)
{
QAction *load = new QAction(tr("Load %1").arg(game->title()));
QAction *load = new QAction(tr("Load %1").arg(game->title()), &self);
load->setData(game->id());
load->setEnabled(game->isPlayable());
connect(load, &QAction::triggered, [load] () {
Expand All @@ -88,6 +91,7 @@ DENG2_PIMPL(NativeMenu)
});
gameMenu->addAction(load);
}
#endif
}
};

Expand Down

0 comments on commit 20d1715

Please sign in to comment.