diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index beb1baf6..b31a5e05 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -131,7 +131,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas reply = QMessageBox::question(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + "" + tr("New version") + QString(": %1
").arg(release->getName()) - + "" + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("Published") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Do you want to update now?"), QMessageBox::Yes | QMessageBox::No); @@ -141,7 +141,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas QMessageBox::information(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + "" + tr("New version") + QString(": %1
").arg(release->getName()) - + "" + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("Published") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "

" + tr("Please check the download page manually and visit the wiki for instructions on compiling.")); } @@ -173,14 +173,16 @@ void DlgUpdate::setLabel(QString newText) { } void DlgUpdate::updateCheckError(QString errorString) { - setLabel("Error"); - QMessageBox::critical(this, tr("Update Error"), tr("An error occurred while checking for updates: ") + errorString); + setLabel(tr("Error")); + QMessageBox::critical(this, tr("Update Error"), + tr("An error occurred while checking for updates:") + QString(" ") + errorString); } void DlgUpdate::downloadError(QString errorString) { setLabel(tr("Error")); enableUpdateButton(true); - QMessageBox::critical(this, tr("Update Error"), tr("An error occurred while downloading an update: ") + errorString); + QMessageBox::critical(this, tr("Update Error"), + tr("An error occurred while downloading an update:") + QString(" ") + errorString); } void DlgUpdate::downloadSuccessful(QUrl filepath) {