~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/sharebox/CShareBox.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-28 21:00:27 UTC
  • Revision ID: admin@quickmediasolutions.com-20120628210027-agxop1i2cj8ym985
Corrected a couple of issues with the progress bar on the share box sticking at 100%.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
void CShareBox::OnProgress(int progress)
61
61
{
62
 
    m_progress = qMax(progress, 100);
 
62
    m_progress = qMin(progress, 100);
63
63
 
64
64
    /* If the transfer completed or an error occured, then set a timer
65
65
       after which progress will be reset to ProgressNone. */