VirtualBox

Changeset 20303 in vbox


Ignore:
Timestamp:
Jun 5, 2009 9:00:43 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: only show ETA if the ETA is known

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProgressDialog.cpp

    r20265 r20303  
    164164        /* First ETA */
    165165        long newTime = mProgress.GetTimeRemaining();
    166         QTime time(0, 0);
    167         time = time.addSecs (newTime);
    168         mETA->setText (mETAText.arg (time.toString()));
     166        if (newTime > 0)
     167        {
     168            QTime time(0, 0);
     169            time = time.addSecs (newTime);
     170            mETA->setText (mETAText.arg (time.toString()));
     171        }else
     172            mETA->clear();
    169173        /* Then operation text if changed */
    170174        ulong newOp = mProgress.GetOperation() + 1;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette