Fix crash when canceling "Save game for later" file chooser
This is a workaround for vala#1104 Fixes #92
This commit is contained in:
parent
9547174ac3
commit
b8f22fbbfa
1 changed files with 2 additions and 1 deletions
|
@ -1258,8 +1258,9 @@ Copyright © 2015–2016 Sahil Sareen""";
|
|||
}
|
||||
}
|
||||
|
||||
/* Why is the callback owned? https://gitlab.gnome.org/GNOME/gnome-chess/-/issues/92#note_2164360 */
|
||||
private delegate void PresentSaveDialogCallback (bool saved);
|
||||
private void present_save_dialog (PresentSaveDialogCallback? callback = null)
|
||||
private void present_save_dialog (owned PresentSaveDialogCallback? callback = null)
|
||||
{
|
||||
if (save_dialog == null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue