mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 16:26:21 +00:00
No need to double check the window type
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -354,16 +354,14 @@ win_get_title(ProfWin* window)
|
|||||||
}
|
}
|
||||||
case WIN_CONFIG:
|
case WIN_CONFIG:
|
||||||
{
|
{
|
||||||
if (window->type == WIN_CONFIG) {
|
ProfConfWin* confwin = (ProfConfWin*)window;
|
||||||
ProfConfWin* confwin = (ProfConfWin*)window;
|
assert(confwin->memcheck == PROFCONFWIN_MEMCHECK);
|
||||||
assert(confwin->memcheck == PROFCONFWIN_MEMCHECK);
|
GString* title = g_string_new(confwin->roomjid);
|
||||||
GString* title = g_string_new(confwin->roomjid);
|
g_string_append(title, " config");
|
||||||
g_string_append(title, " config");
|
if (confwin->form->modified) {
|
||||||
if (confwin->form->modified) {
|
g_string_append(title, " *");
|
||||||
g_string_append(title, " *");
|
|
||||||
}
|
|
||||||
return g_string_free(title, FALSE);
|
|
||||||
}
|
}
|
||||||
|
return g_string_free(title, FALSE);
|
||||||
}
|
}
|
||||||
case WIN_PRIVATE:
|
case WIN_PRIVATE:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user