mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-05 03:47:31 -04:00
Improve performance of EntryHistoryModel.
This commit is contained in:
parent
9f1ab080ee
commit
8d6b200dd7
1 changed files with 3 additions and 4 deletions
|
@ -52,11 +52,10 @@ QVariant EntryHistoryModel::data(const QModelIndex& index, int role) const
|
|||
return QVariant();
|
||||
}
|
||||
|
||||
Entry* entry = entryFromIndex(index);
|
||||
TimeInfo timeInfo = entry->timeInfo();
|
||||
QDateTime lastModificationLocalTime = timeInfo.lastModificationTime().toLocalTime();
|
||||
|
||||
if (role == Qt::DisplayRole || role == Qt::UserRole) {
|
||||
Entry* entry = entryFromIndex(index);
|
||||
TimeInfo timeInfo = entry->timeInfo();
|
||||
QDateTime lastModificationLocalTime = timeInfo.lastModificationTime().toLocalTime();
|
||||
switch (index.column()) {
|
||||
case 0:
|
||||
if (role == Qt::DisplayRole) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue