diff options
author | Brendan Taylor <whateley@gmail.com> | 2010-10-21 15:17:12 -0600 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2010-10-21 15:17:12 -0600 |
commit | d8e3aa56842811761fca33091c73e0be997675e3 (patch) | |
tree | d53ffb4a98d979e3ec0b10bdcc5132af9f10e09a /src | |
parent | 68ce1a4d1b5f9503ef89a798eb4936a7dd9ad9f8 (diff) |
don't update title and status if the main window doesn't exist.
Diffstat (limited to 'src')
-rw-r--r-- | src/uzbl-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c index 54975b9..c736794 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1993,6 +1993,10 @@ void update_title (void) { Behaviour *b = &uzbl.behave; gchar *parsed; + + if(!GTK_IS_WINDOW(uzbl.gui.main_window)) + return; /* we're just starting up or just shutting down. */ + const gchar *current_title = gtk_window_get_title (GTK_WINDOW(uzbl.gui.main_window)); if (b->show_status) { |