Re: [Vala] crashes app

Nor Jaidi Tuah píše v Po 25. 01. 2010 v 07:58 +0800:
      dialog.delete_event.connect (() => {dialog.hide_on_delete ();});

Perhaps you wanted "return dialog.hide_on_delete ();" there? I didn't do
this in a long time, bug if I recall correctly, you need to stop
delete_event by returning true.

That fixes the problem. Thanks.

You're welcome. :)

So that is partly a compiler bug, which should have
reported "returning void when a bool is expected".

Yes, control flow analysis of closures is incomplete.

Nor Jaidi Tuah

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]