Changeset 432

Show
Ignore:
Timestamp:
03/14/06 20:14:26 (2 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.

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/control/torcontrol.cpp

    r409 r432  
    293293    return ver; 
    294294  } 
    295   return "<unknown>"; 
     295  return "<Unavailable>"; 
    296296} 
    297297 
  • 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}