[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3185: unable to close windows
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3185: unable to close windows
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Fri, 19 Jun 2026 16:23:56 GMT
- To: bsteers@xxxxxxxxx,gbWilly@xxxxxxxxxxxxxx,simonlebon54@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3185&from=L21haW4- Comment #8 by Benoît MINISINI: Gambas now prevents a window from being closed if it has been opened before the current modal window. Which is the case here: 'FMain' calls 'Fm1.ShowModal', and then 'Fm2' is opened during the 'Fm1' open event, which is triggered before its modal event loop starts. If you open 'Fm2' after the end of the 'Fm1' open event, it will become closable before 'Fm1' is closed. Otherwise closing it does nothing. Maybe it could be possible to start the modal event loop before calling the 'Open' event. I will see... But anyway, you must not open several windows after having started a modality, because it does not work with GTK+. Only Qt seems to handle that correctly. In other words, when you open a modal window, you must only open other modal windows after it, otherwise it does not work with GTK+. Benoît MINISINI changed the state of the bug to: Working. ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
| [Gambas-bugtracker] Bug #3185: unable to close windows | <bugtracker@xxxxxxxxxxxxxx> |