mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Oups... :S
This commit is contained in:
parent
163e65d765
commit
4f83d59f59
@ -92,7 +92,7 @@ void Equalizer::ReloadSettings() {
|
||||
|
||||
// Selected preset
|
||||
QString selected_preset = s.value("selected_preset", "Custom").toString();
|
||||
QString selected_preset_display_name = QString(tr(selected_preset.toStdString().c_str()))
|
||||
QString selected_preset_display_name = QString(tr(selected_preset.toStdString().c_str()));
|
||||
int selected_index = ui_->preset->findText(selected_preset_display_name);
|
||||
if (selected_index != -1)
|
||||
ui_->preset->setCurrentIndex(selected_index);
|
||||
@ -127,7 +127,7 @@ void Equalizer::LoadDefaultPresets() {
|
||||
}
|
||||
|
||||
void Equalizer::AddPreset(const QString& name, const Params& params) {
|
||||
const char* name_displayed = tr(name.toStdString().c_str());
|
||||
QString name_displayed = tr(name.toStdString().c_str());
|
||||
presets_[name] = params;
|
||||
if (ui_->preset->findText(name_displayed) == -1) {
|
||||
ui_->preset->addItem(name_displayed, // name to display (translated)
|
||||
|
Loading…
x
Reference in New Issue
Block a user