Skip to content

Commit

Permalink
Video Setup Wizard: Use two-digit precision for MB values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McNamara committed Jan 24, 2011
1 parent a080886 commit 9d65821
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mythtv/programs/mythfrontend/setupwizard_video.cpp
Expand Up @@ -250,8 +250,9 @@ void VideoSetupWizard::customEvent(QEvent *e)
if (tokens[1] == "UPDATE")
{
QString message = tr("Downloading Video Sample...\n"
"(%1 of %2 MB)").arg(args[2].toInt() / 1024.0 / 1024.0)
.arg(args[3].toInt() / 1024.0 / 1024.0);
"(%1 of %2 MB)")
.arg(QString::number(args[2].toInt() / 1024.0 / 1024.0, 'f', 2))
.arg(QString::number(args[3].toInt() / 1024.0 / 1024.0, 'f', 2));
m_progressDialog->SetMessage(message);
m_progressDialog->SetTotal(args[3].toInt());
m_progressDialog->SetProgress(args[2].toInt());
Expand Down

0 comments on commit 9d65821

Please sign in to comment.