From caaec71b9fe0919024161114f5cdbb999b0a24b4 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:14:21 +0200 Subject: [PATCH] fix --- mapeditor/mapsettings/generalsettings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mapeditor/mapsettings/generalsettings.cpp b/mapeditor/mapsettings/generalsettings.cpp index eda742d7e..525a0b556 100644 --- a/mapeditor/mapsettings/generalsettings.cpp +++ b/mapeditor/mapsettings/generalsettings.cpp @@ -65,10 +65,10 @@ void GeneralSettings::update() { controller->map()->name = MetaString::createFromTextID(mapRegisterLocalizedString("map", *controller->map(), TextIdentifier("header", "name"), ui->mapNameEdit->text().toStdString())); controller->map()->description = MetaString::createFromTextID(mapRegisterLocalizedString("map", *controller->map(), TextIdentifier("header", "description"), ui->mapDescriptionEdit->toPlainText().toStdString())); - controller->map()->author = MetaString::createFromRawString(ui->authorEdit->toPlainText().toStdString()); - controller->map()->authorContact = MetaString::createFromRawString(ui->authorContactEdit->toPlainText().toStdString()); + controller->map()->author = MetaString::createFromRawString(ui->authorEdit->text().toStdString()); + controller->map()->authorContact = MetaString::createFromRawString(ui->authorContactEdit->text().toStdString()); controller->map()->creationDateTime = ui->mapCreationDateTimeEdit->dateTime().toTime_t(); - controller->map()->mapVersion = MetaString::createFromRawString(ui->mapVersionEdit->toPlainText().toStdString()); + controller->map()->mapVersion = MetaString::createFromRawString(ui->mapVersionEdit->text().toStdString()); if(ui->heroLevelLimitCheck->isChecked()) controller->map()->levelLimit = ui->heroLevelLimit->value(); else