mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-05 01:42:41 +00:00
DolphinQt2: Don't crash when trying to play without a game selected
This commit is contained in:
parent
b187d4cd08
commit
ac18cffcab
1 changed files with 3 additions and 3 deletions
|
@ -340,10 +340,10 @@ void MainWindow::Play()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString selection = m_game_list->GetSelectedGame()->GetFilePath();
|
QSharedPointer<GameFile> selection = m_game_list->GetSelectedGame();
|
||||||
if (selection.length() > 0)
|
if (selection)
|
||||||
{
|
{
|
||||||
StartGame(selection);
|
StartGame(selection->GetFilePath());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue