diff --git a/src/client/spark/Modules/Trading/PNL/VM/PNLVM.cs b/src/client/spark/Modules/Trading/PNL/VM/PNLVM.cs index 6235dfcff..c1f05b5bb 100644 --- a/src/client/spark/Modules/Trading/PNL/VM/PNLVM.cs +++ b/src/client/spark/Modules/Trading/PNL/VM/PNLVM.cs @@ -118,7 +118,15 @@ namespace bts.shell.pnl { ).FilterWithRaw(filter_src, PNLRowData.key_fn, null) .OnDispatcher() .Subscribe(_update), - _symbols_source(pnl_source).OnDispatcher().Subscribe(symbol_filter_items_observer), + // Note: the symbol filter items don't really need to be an IObservable + // (the symbol items used to be extracted from the IObservable pnl_source). + // It is only an IObservable now due to legacy; the filter was designed to observe incremental updates. + // This is can be easily changed if need be. + Observable.Return( + TableUpdate.mk_empty(sym => sym).with_added( + SecurityHelper.get_all_display_symbols())) + .OnDispatcher() + .Subscribe(symbol_filter_items_observer), Disposable.Create(() => { foreach (var f in _all_filters) f.filter_changed -= _refresh_filter.execute;