Skip to content

Commit

Permalink
After pasting a trigger/alias/timer into the list, the previous selec…
Browse files Browse the repository at this point in the history
…tion is re-selected
  • Loading branch information
nickgammon committed Sep 22, 2016
1 parent 4ea0c65 commit a241059
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dialogs/world_prefs/genpropertypage.cpp
Expand Up @@ -1788,6 +1788,8 @@ CString strContents;
if (!GetClipboardContents (strContents, m_doc->m_bUTF_8, false))
return; // can't do it

GetSelectedItem (); // in case we re-load list

CMemFile f ((unsigned char *) (const char *) strContents, strContents.GetLength ());
CArchive ar (&f, CArchive::load);
UINT iCount = 0;
Expand Down

0 comments on commit a241059

Please sign in to comment.