Show directory name/label instead of ID in recent changes

See https://github.com/Martchus/syncthingtray/issues/130
This commit is contained in:
Martchus 2022-04-09 14:35:34 +02:00
parent 42e8e86593
commit bc3cc22d60
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ set(META_APP_CATEGORIES "Network;FileTransfer")
set(META_GUI_OPTIONAL false)
set(META_VERSION_MAJOR 1)
set(META_VERSION_MINOR 1)
set(META_VERSION_PATCH 17)
set(META_VERSION_PATCH 18)
set(META_VERSION_EXACT_SONAME ON)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)

View File

@ -101,7 +101,7 @@ QVariant SyncthingRecentChangesModel::data(const QModelIndex &index, int role) c
case 1:
return change.deviceName.isEmpty() ? change.fileChange.modifiedBy : change.deviceName;
case 2:
return change.directoryId;
return change.directoryName.isEmpty() ? change.directoryId : change.directoryName;
case 3:
return change.fileChange.path;
}