Changeset 2997 for vidalia/trunk

Show
Ignore:
Timestamp:
08/19/08 00:42:55 (3 months ago)
Author:
edmanm
Message:

Make the Tor status label and Vidalia tray icon tooltip display the same
text after a circuit is established. Fixes ticket #390.

Location:
vidalia/trunk/src/vidalia
Files:
2 modified

Legend:

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

    r2995 r2997  
    676676      setStartupProgressVisible(true); 
    677677      setStartupProgress(STARTUP_PROGRESS_STARTING, statusText); 
    678       //ui.lblStartStopTor->setAnimation(QPixmap(ANIM_PROCESS_WORKING)); 
    679678  } else if (status == CircuitEstablished) { 
    680       statusText = tr("Tor is Running"); 
     679      statusText = tr("Connected to the Tor network!"); 
    681680      trayIconFile = IMG_TOR_RUNNING; 
    682681      statusIconFile = IMG_TOR_RUNNING_48; 
    683       QTimer::singleShot(3000, this, SLOT(hideStartupProgress())); 
     682      setStartupProgressVisible(false); 
    684683  } 
    685684 
     
    726725    ui.lblTorStatusImg->setVisible(true); 
    727726  } 
    728 } 
    729  
    730 /** Hides the startup status text and progress bar. */ 
    731 void 
    732 MainWindow::hideStartupProgress() 
    733 { 
    734   setStartupProgressVisible(false); 
    735727} 
    736728 
  • vidalia/trunk/src/vidalia/mainwindow.h

    r2780 r2997  
    111111  /** Called when the proxy server fails to start */ 
    112112  void onProxyFailed(QString errmsg); 
    113   /** Hides the startup status text and progress bar. */ 
    114   void hideStartupProgress(); 
    115113 
    116114#if defined(USE_MINIUPNPC)