mb.setIconPixmap(QPixmap(":/icon.png"));
mb.setWindowTitle(tr("MagicSmoke Version Information"));
TimeZoneLib::TZFile tzf=TimeStamp::defaultZoneFile();
+ auto unknown=[](const QString&s)->QString{if(s.isEmpty())return "(unknown)";else return "'"+s+"'";};
mb.setText(tr( "<h3>MagicSmoke Version %3</h3>"
"<table>"
"<tr><td>Repository:<td>%1</tr>"
"<tr><td>PACK Library:<td>%9<br/>%10</tr>"
"<tr><td>Qt:<td>%11</tr>"
"<tr><td>ELAM:<td>%12</tr>"
- "<tr><td>Time Zone Default:<td>%13 in %14<br/>version %15</tr>"
+ "<tr><td>Time Zone Default:<td>%13 in directory %14<br/>version %15</tr>"
"<tr><td>Time Zone Built-In:<td>%16</tr>"
"</table>"
)
.arg(htmlize(WInterface::staticLibraryVersionInfo(WOb::VersionNumber)))
.arg(htmlize(QT_VERSION_STR)) //%11
.arg(htmlize(ELAM::versionInfo())) //%12
- .arg(tzf.name()) //%13
- .arg(tzf.dirName())
- .arg(tzf.version())
+ .arg(unknown(tzf.name())) //%13
+ .arg(unknown(tzf.dirName()))
+ .arg(unknown(tzf.version()))
.arg(TimeZoneLib::TZFile::builtinVersion()) //%16
);
mb.setStandardButtons(QMessageBox::Ok);