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:
parent
52d573bb69
commit
2db617bc6f
|
@ -253,6 +253,13 @@ void Core::start()
|
||||||
|
|
||||||
qsrand(time(nullptr));
|
qsrand(time(nullptr));
|
||||||
|
|
||||||
|
if (!tox)
|
||||||
|
{
|
||||||
|
ready = true;
|
||||||
|
GUI::setEnabled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// set GUI with user and statusmsg
|
// set GUI with user and statusmsg
|
||||||
QString name = getUsername();
|
QString name = getUsername();
|
||||||
if (!name.isEmpty())
|
if (!name.isEmpty())
|
||||||
|
|
|
@ -414,6 +414,7 @@ void Widget::onFailedToStartCore()
|
||||||
|
|
||||||
void Widget::onBadProxyCore()
|
void Widget::onBadProxyCore()
|
||||||
{
|
{
|
||||||
|
Settings::getInstance().setProxyType(0);
|
||||||
QMessageBox critical(this);
|
QMessageBox critical(this);
|
||||||
critical.setText(tr("toxcore failed to start with your proxy settings. qTox cannot run; please modify your "
|
critical.setText(tr("toxcore failed to start with your proxy settings. qTox cannot run; please modify your "
|
||||||
"settings and restart.", "popup text"));
|
"settings and restart.", "popup text"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user