Close preset messages popup before closing the status window. Otherwise GTK will freeze when the window is closed after the inactivity timer has expired. Fixes #4052

This commit is contained in:
Stephan Erb 2008-06-27 21:11:08 +00:00
parent 2f14a995ee
commit 81dfec2b2a
1 changed files with 2 additions and 0 deletions

View File

@ -555,6 +555,8 @@ class ChangeStatusMessageDialog:
def countdown(self):
if self.countdown_enabled:
if self.countdown_left <= 0:
# Prevent GUI freeze when the combobox menu is opened on close
self.message_combobox.popdown()
self.window.response(gtk.RESPONSE_OK)
return False
self.window.set_title('%s [%s]' % (self.title_text,