diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/core.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 50fba846..f4ee4a86 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -999,12 +999,14 @@ ui_win_unread(int index) gboolean ui_win_has_attention(int index) { + gboolean ret = FALSE; + ProfWin* window = wins_get_by_num(index); if (window) { - return win_has_attention(window); - } else { - return 0; + ret = win_has_attention(window); } + + return ret; } |