Non, non rien n'a changé

This commit is contained in:
Mattéo Delabre 2016-04-21 00:07:03 +02:00
parent 20d251752c
commit d193262dbf
1 changed files with 7 additions and 2 deletions

View File

@ -238,8 +238,13 @@ void Toolbar::updateEditorMusic() {
}
void Toolbar::update() {
name_entry->SetText(editor.getName());
path_entry->SetText(editor.getPath());
if (name_entry->GetText() != editor.getName()) {
name_entry->SetText(editor.getName());
}
if (path_entry->GetText().toAnsiString() != editor.getPath()) {
path_entry->SetText(editor.getPath());
}
for (int i = 0; i < background_combo->GetItemCount(); i++) {
if (background_combo->GetItem(i).toAnsiString() == editor.getBackground()) {