Dialogs: Use the provided object in finish

Allows to make sure that the object will be the same as the one the function started
and will actually not be null.
This commit is contained in:
Corentin Noël 2024-06-27 15:20:34 +02:00 committed by Corentin Noël
parent fd1d4f1b77
commit ea7d9581ee

View File

@ -99,7 +99,7 @@ namespace Gala {
uint ret;
try {
portal.access_dialog.end (res, out ret);
((AccessPortal) obj).access_dialog.end (res, out ret);
} catch (Error e) {
warning (e.message);
ret = 2;