FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
fix(ai_quant_lab): guard rl_progress_stats_ in training_progress slot
tilakpatel2204838dc92f57
diff --git a/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel.cpp b/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel.cppindex b676add45..3f4f5d9e2 100644--- a/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel.cpp+++ b/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel.cpp@@ -256,7 +256,7 @@ void QuantModulePanel::connect_service() {// updates its widgets; other panels ignore these.connect(&svc, &AIQuantLabService::training_progress, this,[this](const QString& module_id, int step, int total, double reward_mean, double loss) {- if (module_id != "rl_trading" || !rl_progress_bar_)+ if (module_id != "rl_trading" || !rl_progress_bar_ || !rl_progress_stats_)return;const int pct = (total > 0) ? qBound(0, int(100.0 * step / total), 100) : 0;rl_progress_bar_->setValue(pct);