diff options
| author | aura <nw@moneybot.cc> | 2026-07-28 19:11:34 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-07-28 19:11:34 +0200 |
| commit | 86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 (patch) | |
| tree | a70f32a0f44b927a6d137998efa405e330689c0f /src/gui/list.cpp | |
| parent | 468813b133a6a3ff0b85d3b34f1009cfeae815e4 (diff) | |
finish undo/redo
Diffstat (limited to 'src/gui/list.cpp')
| -rw-r--r-- | src/gui/list.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/list.cpp b/src/gui/list.cpp index 0a2a3d3..aa0992e 100644 --- a/src/gui/list.cpp +++ b/src/gui/list.cpp @@ -66,10 +66,10 @@ void gui_list_input_fn( void* ptr ) { if( m1 ) { if( !list->held ) { GUI_LIST_ENTRY* e = &list->plist->data[idx]; - *list->pval = e->val; - if( list->cb ) - list->cb( list ); + if( list->pre_cb ) list->pre_cb( list ); + *list->pval = e->val; + if( list->cb ) list->cb( list ); } list->held = 1; } else { |
