aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-10-24 14:28:46 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2010-10-24 14:28:46 -0600
commit279ab2449b9dfb63937f64d144983042b82d1fc3 (patch)
tree302083e4dd1813db7f72cb33576af5cdee30a177
parentd8e3aa56842811761fca33091c73e0be997675e3 (diff)
fix title update logic
-rw-r--r--src/uzbl-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c
index c736794..f0b516e 100644
--- a/src/uzbl-core.c
+++ b/src/uzbl-core.c
@@ -2002,7 +2002,7 @@ update_title (void) {
if (b->show_status) {
if (b->title_format_short && uzbl.gui.main_window) {
parsed = expand(b->title_format_short, 0);
- if(current_title && strcmp(current_title, parsed))
+ if(!current_title || strcmp(current_title, parsed))
gtk_window_set_title (GTK_WINDOW(uzbl.gui.main_window), parsed);
g_free(parsed);
}
@@ -2014,7 +2014,7 @@ update_title (void) {
} else {
if (b->title_format_long && uzbl.gui.main_window) {
parsed = expand(b->title_format_long, 0);
- if(current_title && strcmp(current_title, parsed))
+ if(!current_title || strcmp(current_title, parsed))
gtk_window_set_title (GTK_WINDOW(uzbl.gui.main_window), parsed);
g_free(parsed);
}