mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 16:16:46 +02:00
couple fixes
This commit is contained in:
@ -207,6 +207,9 @@ static void chat_onFileData(ToxWindow *self, Tox *m, int num, uint8_t filenum, u
|
||||
|
||||
// we have a problem here, but don't let it segfault
|
||||
if (file_to_save == NULL) {
|
||||
wattron(ctx->history, COLOR_PAIR(RED));
|
||||
wprintw(ctx->history, "* Error writing to file.\n");
|
||||
wattroff(ctx->history, COLOR_PAIR(RED));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user