summaryrefslogtreecommitdiff
path: root/src/gui/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/list.cpp')
-rw-r--r--src/gui/list.cpp6
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 {