Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:KDE:Unstable:Applications
kget
0001-Fix-icons-in-transfer-history.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-icons-in-transfer-history.patch of Package kget
From 61a9f575318e2d42688be749f569280d85793613 Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer <wbauer@tmo.at> Date: Mon, 5 Oct 2020 21:46:28 +0200 Subject: [PATCH] Fix icons in transfer history The destination is a local file path, so we need to use QUrl::fromLocalFile() to convert it to QUrl. Otherwise it would result in an invalid QUrl (without the "file://" scheme), so the filetype cannot be determined resulting in all entries having a generic icon instead. --- ui/history/transferhistoryitemdelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/history/transferhistoryitemdelegate.cpp b/ui/history/transferhistoryitemdelegate.cpp index 5ce332ed..947e0a08 100644 --- a/ui/history/transferhistoryitemdelegate.cpp +++ b/ui/history/transferhistoryitemdelegate.cpp @@ -91,7 +91,7 @@ void TransferHistoryItemDelegate::paint(QPainter *painter, QUrl url(model->data(index, TransferHistoryCategorizedDelegate::RoleUrl).toString()); QString name = url.path().mid(url.path().lastIndexOf("/") + 1); QIcon icon(KIO::pixmapForUrl( - model->data(index, TransferHistoryCategorizedDelegate::RoleDest).toUrl(), + QUrl::fromLocalFile(model->data(index, TransferHistoryCategorizedDelegate::RoleDest).toString()), 0, KIconLoader::Panel)); QString size = KIO::convertSize(model->data(index, TransferHistoryCategorizedDelegate::RoleSize).toInt()); QString date = model->data(index, TransferHistoryCategorizedDelegate::RoleDate).toDate().toString("dd.MM.yyyy"); -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor