Allow multiple recipients of KDM emails (#745).
[dcpomatic.git] / src / wx / editable_list.h
index be79f67e66597dd2e437ab16c51b55c50017dd1a..bb749a4a44bc76a2de44cd5dc61b7b6b5351e734 100644 (file)
 
 */
 
+#include "wx_util.h"
 #include <wx/wx.h>
 #include <wx/listctrl.h>
+#include <boost/function.hpp>
+#include <vector>
 
+/** @param T type of things being edited.
+ *  @param S dialog to edit a thing.
+ */
 template<class T, class S>
 class EditableList : public wxPanel
 {
@@ -78,8 +84,9 @@ public:
                _list->Bind (wxEVT_COMMAND_LIST_ITEM_SELECTED, boost::bind (&EditableList::selection_changed, this));
                _list->Bind (wxEVT_COMMAND_LIST_ITEM_DESELECTED, boost::bind (&EditableList::selection_changed, this));
                _list->Bind (wxEVT_SIZE, boost::bind (&EditableList::resized, this, _1));
-               selection_changed ();
 
+               refresh ();
+               selection_changed ();
        }
 
        void refresh ()