mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Fix build on some compilers regardind switch statement
Fix the famous `error: a label can only be part of a statement and a declaration is not a statement`.
This commit is contained in:
parent
a8ba8af0de
commit
996a1fdf35
@ -9398,13 +9398,17 @@ _prepare_filename(ProfWin* window, gchar* url, gchar* path)
|
||||
// lets skip private windows and put those files in general download folder
|
||||
switch (window->type) {
|
||||
case WIN_CHAT:
|
||||
{
|
||||
ProfChatWin* chatwin = (ProfChatWin*)window;
|
||||
jid = chatwin->barejid;
|
||||
break;
|
||||
}
|
||||
case WIN_MUC:
|
||||
{
|
||||
ProfMucWin* mucwin = (ProfMucWin*)window;
|
||||
jid = mucwin->roomjid;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user