Trim aircraft names to fix alphabetical sort
(Note, only for locl acft, hangar acft need a seperate fix)
This commit is contained in:
parent
5229f8eabf
commit
2f12c0b0bd
1 changed files with 5 additions and 2 deletions
|
@ -35,7 +35,7 @@
|
|||
#include <simgear/props/props_io.hxx>
|
||||
#include <simgear/structure/exception.hxx>
|
||||
|
||||
static quint32 CACHE_VERSION = 8;
|
||||
static quint32 CACHE_VERSION = 10;
|
||||
|
||||
const int STANDARD_THUMBNAIL_HEIGHT = 128;
|
||||
//const int STANDARD_THUMBNAIL_WIDTH = 172;
|
||||
|
@ -63,7 +63,10 @@ AircraftItem::AircraftItem(QDir dir, QString filePath)
|
|||
}
|
||||
|
||||
description = sim->getStringValue("description");
|
||||
authors = sim->getStringValue("author");
|
||||
// trim the description to ensure the alphabetical sort
|
||||
// doesn't get thrown off by leading whitespace
|
||||
description = description.trimmed();
|
||||
authors = sim->getStringValue("author");
|
||||
|
||||
if (sim->hasChild("rating")) {
|
||||
SGPropertyNode_ptr ratingsNode = sim->getNode("rating");
|
||||
|
|
Loading…
Add table
Reference in a new issue