From a241059d93dfee91d3450c7e3a3916794504bba9 Mon Sep 17 00:00:00 2001 From: Nick Gammon Date: Fri, 23 Sep 2016 08:13:53 +1000 Subject: [PATCH] After pasting a trigger/alias/timer into the list, the previous selection is re-selected --- dialogs/world_prefs/genpropertypage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dialogs/world_prefs/genpropertypage.cpp b/dialogs/world_prefs/genpropertypage.cpp index dc46d5eb..858a24fe 100644 --- a/dialogs/world_prefs/genpropertypage.cpp +++ b/dialogs/world_prefs/genpropertypage.cpp @@ -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;