Changeset 11208


Ignore:
Timestamp:
Sep 14, 2010, 4:08:24 AM (13 years ago)
Author:
Longinus00
Message:

fix last activity display in qt client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/details.cc

    r11161 r11208  
    500500                latest = dt;
    501501        }
    502         const int seconds = latest.secsTo( qdt_now );
    503         if( seconds < 5 )
     502        const int seconds = latest.isValid() ? latest.secsTo( qdt_now ) : -1;
     503        if( seconds < 0 )
     504            string = none;
     505        else if( seconds < 5 )
    504506            string = tr( "Active now" );
    505507        else
Note: See TracChangeset for help on using the changeset viewer.