Commit 0da9178c authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Gerrit: Fix sorting by change number

Change-Id: I476bcfb38c6c0d48f6ff8102aa8f2876d89d167a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 96e3f258
......@@ -685,7 +685,7 @@ QList<QStandardItem *> GerritModel::changeToRow(const GerritChangePtr &c) const
item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
row.append(item);
}
row[NumberColumn]->setText(QString::number(c->number));
row[NumberColumn]->setData(c->number, Qt::DisplayRole);
row[TitleColumn]->setText(c->title);
row[OwnerColumn]->setText(c->owner);
// Shorten columns: Display time if it is today, else date
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment