1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Exit if nonnexistant profile passed to -P

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2015-01-28 21:33:41 +01:00
parent edef42ec69
commit 7b7ff9c474
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -79,7 +79,10 @@ int main(int argc, char *argv[])
Settings::getInstance().setCurrentProfile(profile); Settings::getInstance().setCurrentProfile(profile);
} }
else else
qWarning() << "Warning: -P profile" << profile + ".tox" << "doesn't exist"; {
qWarning() << "Error: -P profile" << profile + ".tox" << "doesn't exist";
return EXIT_FAILURE;
}
} }
sodium_init(); // For the auto-updater sodium_init(); // For the auto-updater