wrong bool logic

pull/14/head
Tom Early 6 years ago
parent 63b8e281b6
commit ed6d0baca1

@ -346,7 +346,7 @@ bool CQnetGateway::ReadConfig(char *cfgFile)
// dashboard
path.assign("dash_");
cfg.GetValue(path+"show_order", estr, DASH_SHOW_ORDER, 2, 17);
showLastHeard = (std::string::npos == DASH_SHOW_ORDER.find("LH"));
showLastHeard = (std::string::npos != DASH_SHOW_ORDER.find("LH"));
cfg.GetValue(path+"sql_filename", estr, DASH_SQL_NAME, 1, 32);
return false;

@ -219,4 +219,4 @@ timing_play_delay_d=19 # milliseconds between frames playback, if echo so
dash_sql_filename_d='qn.db' # name for the sqlite database in the $CFGDIR directory
dash_refresh_d=20 # seconds for the webpage to reload
dash_lastheard_count_d=20 # maximum number of last heard entries to display
dash_show_order_d='LH,MO,SY,IP,PS,UR' # Show sections in this order
dash_show_order_d='MO,LH,SY,UR' # Show sections in this order, (not in default: IP and PS)

Loading…
Cancel
Save

Powered by TurnKey Linux.