Skip to content

Commit

Permalink
Fix game installation segfault
Browse files Browse the repository at this point in the history
Former-commit-id: b213b2f
  • Loading branch information
tkashkin committed Jun 7, 2018
1 parent e51e819 commit 2ca0180
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ui/dialogs/GOGGameInstallDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ namespace GameHub.UI.Dialogs
break;

case ResponseType.ACCEPT:
var row = languages_list.get_selected_row() as LangRow;
var installer = installers[0];
if(installers.size > 1)
{
var row = languages_list.get_selected_row() as LangRow;
installer = row.installer;
}
is_finished = true;
install(row.installer);
install(installer);
destroy();
break;
}
Expand Down

0 comments on commit 2ca0180

Please sign in to comment.