Show
Ignore:
Timestamp:
01/15/06 17:36:23 (3 years ago)
Author:
edmanm
Message:

Check in a bulk of the asynchronous event handling code. Some work remains.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/mainwindow.cpp

    r89 r90  
    149149  if (!_torControl->start(&errmsg)) { 
    150150    QMessageBox::warning(this, tr("Error Starting Tor"), 
    151        tr("Vidalia was unable to start Tor.\r\n\r\nError: ") + errmsg, 
     151       tr("Vidalia was unable to start Tor.\n\nError: ") + errmsg, 
    152152       QMessageBox::Ok, QMessageBox::NoButton); 
    153153  } 
     
    192192           "\n\nError: ") + errmsg, 
    193193        QMessageBox::Ok, QMessageBox::NoButton); 
     194    } else { 
     195      if (!_torControl->addEvent(TorEvents::Bandwidth, &errmsg)) { 
     196      QMessageBox::warning(this, tr("Authentication Error"), 
     197        tr("Vidalia was unable to authenticate itself to Tor." 
     198           "Check your authentication information and try again." 
     199           "\n\nError: ") + errmsg, 
     200        QMessageBox::Ok, QMessageBox::NoButton); 
     201      } 
    194202    } 
    195203  } 
     
    238246    if (!_isIntentionalExit) { 
    239247      QMessageBox::warning(this, tr("Tor Crashed"), 
    240         tr("Vidalia detected that the Tor process crashed.\n" 
     248        tr("Vidalia detected that the Tor process crashed.\n\n" 
    241249            "Please check the message log."), 
    242250         QMessageBox::Ok, QMessageBox::NoButton); 
     
    247255     * if this turns out to not be the case. */ 
    248256    QMessageBox::warning(this, tr("Tor Exited"), 
    249        tr("Tor exited and returned a non-zero exit code.\n" 
     257       tr("Tor exited and returned a non-zero exit code.\n\n" 
    250258          "Please check the message log."), 
    251259       QMessageBox::Ok, QMessageBox::NoButton);