From 1bb1f57128557779b497d59abf72bfc2d9de954f Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 29 Aug 2023 13:44:54 +0200 Subject: [PATCH] No need to double check the window type Signed-off-by: Steffen Jaeckel --- src/ui/window.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/ui/window.c b/src/ui/window.c index deb51bd9..0546c130 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -354,16 +354,14 @@ win_get_title(ProfWin* window) } case WIN_CONFIG: { - if (window->type == WIN_CONFIG) { - ProfConfWin* confwin = (ProfConfWin*)window; - assert(confwin->memcheck == PROFCONFWIN_MEMCHECK); - GString* title = g_string_new(confwin->roomjid); - g_string_append(title, " config"); - if (confwin->form->modified) { - g_string_append(title, " *"); - } - return g_string_free(title, FALSE); + ProfConfWin* confwin = (ProfConfWin*)window; + assert(confwin->memcheck == PROFCONFWIN_MEMCHECK); + GString* title = g_string_new(confwin->roomjid); + g_string_append(title, " config"); + if (confwin->form->modified) { + g_string_append(title, " *"); } + return g_string_free(title, FALSE); } case WIN_PRIVATE: {