From a30992683910936f075b0108b8c9374ccf2e7e5e Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 5 May 2024 13:54:53 +0200 Subject: [PATCH] Show tooltip for error/loading items in file browser --- syncthingmodel/syncthingfilemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthingmodel/syncthingfilemodel.cpp b/syncthingmodel/syncthingfilemodel.cpp index 2cf8780..398cebf 100644 --- a/syncthingmodel/syncthingfilemodel.cpp +++ b/syncthingmodel/syncthingfilemodel.cpp @@ -250,7 +250,7 @@ QVariant SyncthingFileModel::data(const QModelIndex &index, int role) const case Qt::ToolTipRole: switch (index.column()) { case 0: - return item->isFilesystemItem() ? item->path : QString(); + return item->isFilesystemItem() ? item->path : item->name; case 2: return agoString(item->modificationTime); }