mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(core): don't continue when the tox file is corrupted
This commit is contained in:
parent
8028281069
commit
20db8b740b
|
@ -180,8 +180,9 @@ void Core::makeTox(QByteArray savedata)
|
|||
break;
|
||||
|
||||
case TOX_ERR_NEW_LOAD_BAD_FORMAT:
|
||||
qWarning() << "failed to parse Tox save data";
|
||||
break;
|
||||
qCritical() << "failed to parse Tox save data";
|
||||
emit failedToStart();
|
||||
return;
|
||||
|
||||
case TOX_ERR_NEW_PORT_ALLOC:
|
||||
if (Settings::getInstance().getEnableIPv6()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user