Skip to content

Commit

Permalink
#5399: Fix Conversation Editor refusing to accept actor names
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Nov 14, 2020
1 parent 5ab74fa commit 982dd14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/dm.conversation/ConversationEditor.cpp
Expand Up @@ -475,8 +475,9 @@ void ConversationEditor::onActorEdited(wxDataViewEvent& ev)
// The iter points to the edited cell now, get the actor number
int actorNum = row[_actorColumns.actorNumber].getInteger();

// Update the conversation
_conversation.actors[actorNum] = static_cast<std::string>(ev.GetValue());
// Update the conversation from the row value (ev.GetValue() doesn't work)
std::string actor = row[_actorColumns.displayName];
_conversation.actors[actorNum] = actor;

// Update all command widgets
updateCommandList();
Expand Down

0 comments on commit 982dd14

Please sign in to comment.