Show directory name/label instead of ID in recent changes
See https://github.com/Martchus/syncthingtray/issues/130
This commit is contained in:
parent
42e8e86593
commit
bc3cc22d60
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue