aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel/GameTabRightPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/right_panel/GameTabRightPanel.cpp')
-rw-r--r--src/game_tab/right_panel/GameTabRightPanel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game_tab/right_panel/GameTabRightPanel.cpp b/src/game_tab/right_panel/GameTabRightPanel.cpp
index 5d933b8..ff9576d 100644
--- a/src/game_tab/right_panel/GameTabRightPanel.cpp
+++ b/src/game_tab/right_panel/GameTabRightPanel.cpp
@@ -56,7 +56,7 @@ void GameTabRightPanel::OnLiveAnalysis(wxCommandEvent &event) {
ProcessEvent(notifyEvent);
live_engine = new LiveEngineDialog(
- this, engine_list->GetString(selection).ToStdString());
+ this, selection);
live_engine->SetFEN(game->GetFen());
live_engine->Show();
live_engine->Bind(wxEVT_CLOSE_WINDOW,
@@ -168,12 +168,12 @@ void GameTabRightPanel::ApplyPreferences() {
engine_list->Clear();
CONFIG_OPEN(conf);
conf->SetPath("engines/");
- wxString engine_name;
+ wxString engine_id;
long index;
- if (conf->GetFirstGroup(engine_name, index)) {
+ if (conf->GetFirstGroup(engine_id, index)) {
do {
- engine_list->Append(engine_name);
- } while (conf->GetNextGroup(engine_name, index));
+ engine_list->Append(conf->Read(engine_id+"/name"));
+ } while (conf->GetNextGroup(engine_id, index));
}
CONFIG_CLOSE(conf);
editor_canvas->ApplyPreferences();