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

Recover if tox fails to start

This commit is contained in:
tux3 2015-05-25 22:37:19 +02:00
parent 52d573bb69
commit 2db617bc6f
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 8 additions and 0 deletions

View File

@ -253,6 +253,13 @@ void Core::start()
qsrand(time(nullptr));
if (!tox)
{
ready = true;
GUI::setEnabled(true);
return;
}
// set GUI with user and statusmsg
QString name = getUsername();
if (!name.isEmpty())

View File

@ -414,6 +414,7 @@ void Widget::onFailedToStartCore()
void Widget::onBadProxyCore()
{
Settings::getInstance().setProxyType(0);
QMessageBox critical(this);
critical.setText(tr("toxcore failed to start with your proxy settings. qTox cannot run; please modify your "
"settings and restart.", "popup text"));