diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-13 13:07:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-13 13:07:16 +0000 |
| commit | df89a39cfd34d0d70609daa214d3b618bb6223bd (patch) | |
| tree | 1629307cc535fc0ea8804ca935022dddf163135d /src/wx/editable_list.h | |
| parent | 43800d83434697a31bdfae62dd377cfc3900986b (diff) | |
Allow multiple recipients of KDM emails (#745).
Diffstat (limited to 'src/wx/editable_list.h')
| -rw-r--r-- | src/wx/editable_list.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/editable_list.h b/src/wx/editable_list.h index be79f67e6..bb749a4a4 100644 --- a/src/wx/editable_list.h +++ b/src/wx/editable_list.h @@ -17,9 +17,15 @@ */ +#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 () |
