Show
Ignore:
Timestamp:
03/14/06 20:14:26 (3 years ago)
Author:
edmanm
Message:

If someone selects About and Tor is not running, say "<Not Running>" instead
of "<unknown>" to hopefully give users a hint as to why we don't currently
know the version of their Tor. If their Tor is running but we still can't get
the version, say "<Unavailable>". Otherwise, give them their version number.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/about/aboutdialog.cpp

    r356 r432  
    101101{ 
    102102  /* Access the TorControl object to retrieve version */ 
    103   ui.lblTorVersion->setText(_torControl->getTorVersion()); 
    104  
     103  if (_torControl->isRunning()) { 
     104    ui.lblTorVersion->setText(_torControl->getTorVersion()); 
     105  } else { 
     106    ui.lblTorVersion->setText("<Not Running>"); 
     107  } 
    105108  QDialog::show(); 
    106109}