diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 4540c27..7ea7d28 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1413,7 +1413,7 @@ void Courtroom::set_background(QString p_background, bool display) const QStringList overrides = {"def", "wit", "pro"}; for (const QString &override_pos : overrides) { - if (!ao_app->read_design_ini("court:" + override_pos + "/pos_center", ao_app->get_background_path("design.ini")).isEmpty()) + if (!ao_app->read_design_ini("court:" + override_pos + "/rect", ao_app->get_background_path("design.ini")).isEmpty()) { pos_list.append(override_pos); } @@ -3155,7 +3155,7 @@ void Courtroom::do_effect(QString fx_path, QString fx_sound, QString p_char, QSt return; } QString effect = ao_app->get_effect(fx_path, p_char, p_folder); - if (effect == "") + if (effect.isEmpty()) { ui_vp_effect->stopPlayback(); ui_vp_effect->hide(); diff --git a/src/path_functions.cpp b/src/path_functions.cpp index 4d22e9b..4a23ac7 100644 --- a/src/path_functions.cpp +++ b/src/path_functions.cpp @@ -100,7 +100,7 @@ QPair AOApplication::get_pos_path(const QString &pos, const bool QRect f_rect; if (f_pos_split.size() > 1) { // Subposition, get center info - QStringList arglist = read_design_ini(f_pos + "/pos_center", get_background_path("design.ini")).split(","); + QStringList arglist = read_design_ini(f_pos + "/rect", get_background_path("design.ini")).split(","); if (arglist.size() == 4) { f_rect = QRect(arglist[0].toInt(), arglist[1].toInt(), arglist[2].toInt(), arglist[3].toInt());