Changeset 8345


Ignore:
Timestamp:
May 6, 2009, 1:46:10 PM (12 years ago)
Author:
charles
Message:

(trunk qt) hide the network icon when the transmission session is being run inside the client. patch by stdisease

Location:
trunk/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/mainwin.cc

    r8344 r8345  
    668668    foreach( QWidget * w, myDownStatusWidgets ) w->setVisible( !down.isZero( ) );
    669669
     670    myNetworkLabel->setVisible( !mySession.isServer( ) );
     671
    670672    const QString mode( myPrefs.getString( Prefs::STATUSBAR_STATS ) );
    671673    QString str;
  • trunk/qt/session.h

    r8327 r8345  
    6363
    6464    public:
    65         bool isRemote( ) const { return !isLocal( ); }
     65
     66        /** returns true if the transmission session is being run inside this client */
     67        bool isServer( ) const;
     68
     69        /** returns true if isServer() is true or if the remote address is the localhost */
    6670        bool isLocal( ) const;
    67         bool isServer( ) const;
    6871
    6972    private:
Note: See TracChangeset for help on using the changeset viewer.