QMessageBox::critical(this,APPLICATION_NAME" "VERSION,tr("No Internet connection was found.\nPlease check your Internet settings and firewall."));
else
{
intver=jfrVersion(version);
switch(ver)
{
case0:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nThere is a later version of ")+APPLICATION_NAME+"<br>"+tr("Please download from")+"<p><a href=\""+applicationHomepage+"\">"+applicationHomepage+"</a></p><p>"+tr("Latest version: ")+version+"</p>");
break;
case1:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nYour version of ")+APPLICATION_NAME+tr(" is later than the latest official version ")+"("+version+").");
break;
case2:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nYou have the latest version of ")+APPLICATION_NAME+".");
break;
default:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nThere was an error when the version was checked."));
break;
};
}
{
intver=jfrVersion(version);
switch(ver)
{
case0:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nThere is a later version of ")+APPLICATION_NAME+"<br>"+tr("Please download from")+"<p><a href=\""+applicationHomepage+"\">"+applicationHomepage+"</a></p><p>"+tr("Latest version: ")+version+"</p>");
break;
case1:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nYour version of ")+APPLICATION_NAME+tr(" is later than the latest official version ")+"("+version+").");
break;
case2:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nYou have the latest version of ")+APPLICATION_NAME+".");
break;
default:
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nThere was an error when the version was checked."));
QMessageBox::information(this,APPLICATION_NAME" "VERSION,tr("\nThere is a later version of ")+APPLICATION_NAME+"<br>"+tr("Please download from")+"<p><a href=""+applicationHomepage+"">"+applicationHomepage+"</a></p><p>"+tr("Latest version: ")+version+"</p>");