Fix MSVC2012 build
- multi-line QStringLiteral doesn’t work on MSVC prior to 2013. Boo.
This commit is contained in:
parent
9e60dcba61
commit
2d1c5d47ee
1 changed files with 5 additions and 5 deletions
|
@ -154,14 +154,14 @@ void PathsDialog::onRemoveCatalog()
|
|||
FGHTTPClient* http = static_cast<FGHTTPClient*>(globals->get_subsystem("http"));
|
||||
|
||||
if (mi.isValid()) {
|
||||
QString s = QStringLiteral("Remove aircraft hangar '%1'? All installed aircraft from this "
|
||||
"hangar will be removed.");
|
||||
QString s = QString("Remove aircraft hangar '%1'? All installed aircraft from this "
|
||||
"hangar will be removed.");
|
||||
QString pkgId = mi.data(CatalogIdRole).toString();
|
||||
|
||||
if (pkgId.toStdString() == http->getDefaultCatalogId()) {
|
||||
s = QStringLiteral("Remove default aircraft hangar? "
|
||||
"This hangar contains all the default aircraft included with FlightGear. "
|
||||
"If you change your mind in the future, click the 'restore' button.");
|
||||
s = QString("Remove default aircraft hangar? "
|
||||
"This hangar contains all the default aircraft included with FlightGear. "
|
||||
"If you change your mind in the future, click the 'restore' button.");
|
||||
} else {
|
||||
s = s.arg(mi.data(Qt::DisplayRole).toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue