about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-20 01:30:49 +0000
committerJames Booth <boothj5@gmail.com>2015-11-20 01:30:49 +0000
commit6935862195cc54f5fc8590fc2d6ced8837c5e8ac (patch)
treee077f7ac4e0810d48c68a408a98db7248373a3dd
parent99b4fff94995dde75af929922dc7bf1ae8b9ce41 (diff)
downloadprofani-tty-6935862195cc54f5fc8590fc2d6ced8837c5e8ac.tar.gz
Don't print empty line when no presence or status displayed in roster
-rw-r--r--src/ui/rosterwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c
index 64ce1f7f..f13f5dc5 100644
--- a/src/ui/rosterwin.c
+++ b/src/ui/rosterwin.c
@@ -70,7 +70,7 @@ _rosterwin_presence(ProfLayoutSplit *layout, int indent, theme_item_t colour, co
         }
 
     // show both presence and status when not grouped by presence
-    } else {
+    } else if (prefs_get_boolean(PREF_ROSTER_PRESENCE) || (status && prefs_get_boolean(PREF_ROSTER_STATUS))) {
         wattron(layout->subwin, theme_attrs(colour));
         GString *msg = g_string_new(" ");
         while (indent > 0) {