about summary refs log tree commit diff stats
path: root/src/paintings_pane.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-11 10:09:05 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-11 10:09:05 -0400
commit1fe53ae878356633d0d14e456945f6466ef28e51 (patch)
tree1712d431937f3cc2b838f5ae61649981003bce49 /src/paintings_pane.cpp
parentf801cd592d02eb1a95f6e215cd6fbe7aea631fae (diff)
downloadlingo-ap-tracker-1fe53ae878356633d0d14e456945f6466ef28e51.tar.gz
lingo-ap-tracker-1fe53ae878356633d0d14e456945f6466ef28e51.tar.bz2
lingo-ap-tracker-1fe53ae878356633d0d14e456945f6466ef28e51.zip
Prevent editing paintings pane cells
Diffstat (limited to 'src/paintings_pane.cpp')
-rw-r--r--src/paintings_pane.cpp4
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
86void PaintingsPane::OnStartEditingCell(wxDataViewEvent& event) { event.Veto(); }