Commit 9459001f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Use the icon for the device, in the file item actions

This way, we have visual information of what type of file we're sending it
parent b7420146
......@@ -54,7 +54,7 @@ QList<QAction*> SendFileItemAction::actions(const KFileItemListProperties& fileI
QModelIndex idx = m.index(i);
DeviceDbusInterface* dev = m.getDevice(idx);
if(dev->isReachable() && dev->isPaired()) {
QAction* action = new QAction(dev->name(), parentWidget);
QAction* action = new QAction(QIcon::fromTheme(dev->iconName()), dev->name(), parentWidget);
action->setProperty("urls", QVariant::fromValue(fileItemInfos.urlList()));
action->setProperty("parentWidget", QVariant::fromValue(parentWidget));
......@@ -71,7 +71,6 @@ QList<QAction*> SendFileItemAction::actions(const KFileItemListProperties& fileI
} else {
if(actions.count() == 1) {
actions.first()->setText(i18n("Send to '%1' via KDE Connect", actions.first()->text()));
return actions;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment