Skip to content
  • Zain's avatar
    Fix: bgo #753358 stderr errors when Alt-F4 is used · 7682c9d6
    Zain authored and Kai Willadsen's avatar Kai Willadsen committed
    Problem:
      When meld is launched from console, usecase is git difftool,
      After closing App using Alt+F4 console displays multiple error messages
      Error Messages look like
      (meld:18521): Gtk-CRITICAL **: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed
    
    Cause:
      closing window triggers do_window_removed
      Unlike when Quit is choosen from Menu, self.quit() is never called
      Gtk complains and adds error messages on STDERR
    
    Solution:
      When do_window_removed is called check if there are any active windows
      If there is no active window, call self.quit()
    7682c9d6