Browse Source

Recover if tox fails to start

pull/1738/head
tux3 10 years ago
parent
commit
2db617bc6f
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 7
      src/core/core.cpp
  2. 1
      src/widget/widget.cpp

7
src/core/core.cpp

@ -253,6 +253,13 @@ void Core::start() @@ -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())

1
src/widget/widget.cpp

@ -414,6 +414,7 @@ void Widget::onFailedToStartCore() @@ -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"));

Loading…
Cancel
Save