about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2015-01-08 10:06:39 -0600
committerWill Song <incertia9474@gmail.com>2015-01-08 10:06:39 -0600
commit22a8d7a8a3b340b0a371b27727a684d942a8c369 (patch)
tree90faf37b3b6b83a83ac15c6320fd09654c5548b8 /src
parent89aaaddfbb0ba818111b3f1faf6c4478545dd3e7 (diff)
downloadprofani-tty-22a8d7a8a3b340b0a371b27727a684d942a8c369.tar.gz
check preferences before printing exit title
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index c86a5475..8e5f6689 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -290,7 +290,8 @@ _init(const int disable_tls, char *log_level)
 static void
 _shutdown(void)
 {
-    ui_goodbye_title();
+    if(prefs_get_boolean(PREF_TITLEBAR) && prefs_get_boolean(PREF_EXIT_TITLE))
+        ui_goodbye_title();
     ui_close_all_wins();
     jabber_disconnect();
     jabber_shutdown();