@ -1062,6 +1062,18 @@ public:
std::string getFocusString() { return "stocks_view"; }
df::item *getSelectedItem() override
{
if (is_grouped)
return nullptr;
vector<item_grouped_entry*> items = getSelectedItems();
if (items.size() != 1)
if (items[0]->entries.size() != 1)
return items[0]->entries[0];
}
private:
StockListColumn<item_grouped_entry *> items_column;
int selected_column;