mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 21:21:17 +00:00
Copy window list before destroying each window
https://bugzilla.gnome.org/show_bug.cgi?id=701781
This commit is contained in:
parent
aaedde148e
commit
d26fbb2859
|
@ -222,7 +222,9 @@ public class Application : Gtk.Application
|
|||
|
||||
private void on_app_quit_activated()
|
||||
{
|
||||
foreach (var window in get_windows())
|
||||
var wnds = get_windows().copy();
|
||||
|
||||
foreach (var window in wnds)
|
||||
{
|
||||
window.destroy();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue