File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,10 @@ VOID _app_print (
470470 severity_string = _r_obj_findhashtablepointer (config .severity , severity_code );
471471 facility_string = _r_obj_findhashtablepointer (config .facility , facility_code );
472472
473- select_id = _r_listview_getselecteditem (hwnd , IDC_LISTVIEW );
473+ select_id = _r_config_getlong (L"SelectedItem" , -1 );
474+
475+ if (select_id == -1 )
476+ select_id = _r_listview_getselecteditem (hwnd , IDC_LISTVIEW );
474477
475478 // clear first
476479 _r_listview_deleteallitems (hwnd , IDC_LISTVIEW );
@@ -1378,6 +1381,8 @@ INT_PTR CALLBACK DlgProc (
13781381
13791382 window_text = _r_ctrl_getstring (hwnd , IDC_CODE_CTL );
13801383
1384+ _r_config_setlong (L"SelectedItem" , _r_listview_getselecteditem (hwnd , IDC_LISTVIEW ));
1385+
13811386 _r_config_setstring (L"LatestCode" , _r_obj_getstring (window_text ));
13821387
13831388 if (window_text )
You can’t perform that action at this time.
0 commit comments