diff options
Diffstat (limited to 'src/paintings_pane.cpp')
-rw-r--r-- | src/paintings_pane.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/paintings_pane.cpp b/src/paintings_pane.cpp index 51c4995..bf5d71b 100644 --- a/src/paintings_pane.cpp +++ b/src/paintings_pane.cpp | |||
@@ -36,6 +36,8 @@ PaintingsPane::PaintingsPane(wxWindow* parent) : wxPanel(parent, wxID_ANY) { | |||
36 | 36 | ||
37 | SetSizerAndFit(top_sizer); | 37 | SetSizerAndFit(top_sizer); |
38 | 38 | ||
39 | tree_ctrl_->Bind(wxEVT_DATAVIEW_ITEM_START_EDITING, | ||
40 | &PaintingsPane::OnStartEditingCell, this); | ||
39 | reveal_btn_->Bind(wxEVT_BUTTON, &PaintingsPane::OnClickRevealPaintings, this); | 41 | reveal_btn_->Bind(wxEVT_BUTTON, &PaintingsPane::OnClickRevealPaintings, this); |
40 | } | 42 | } |
41 | 43 | ||
@@ -80,3 +82,5 @@ void PaintingsPane::OnClickRevealPaintings(wxCommandEvent& event) { | |||
80 | 82 | ||
81 | AP_RevealPaintings(); | 83 | AP_RevealPaintings(); |
82 | } | 84 | } |
85 | |||
86 | void PaintingsPane::OnStartEditingCell(wxDataViewEvent& event) { event.Veto(); } | ||