Project

General

Profile

Actions

Bug #2361

closed

Qt: city_production_model::setData() always early exits

Added by Marko Lindqvist about 1 month ago. Updated 10 days ago.

Status:
Closed
Priority:
Normal
Category:
Qt-client
Target version:
Start date:
10/11/2026
Due date:
% Done:

0%

Estimated time:

Description

The city_production_model::setData() condition

if (!index.isValid() || role != Qt::DisplayRole || role != Qt::ToolTipRole)

is always true, since role cannot be simultaneously both Qt::DisplayRole and Qt::ToolTipRole


Files

Actions #1

Updated by Marko Lindqvist about 1 month ago

As far as I can see, whole function was completely pointless. Drop it, but only from development branch.

Actions #2

Updated by Marko Lindqvist 10 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF