]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Removed customm setText for mtp devices and check for kio_mtp
authorAlex Fiestas <afiestas@kde.org>
Wed, 31 Oct 2012 23:25:36 +0000 (00:25 +0100)
committerAlex Fiestas <afiestas@kde.org>
Wed, 31 Oct 2012 23:28:18 +0000 (00:28 +0100)
We are already checking if kio_mtp is installed when we build the
predicate so we don't need to check if it is installed again.

Also, the fix for "Showing the product as a name for some kind of
massive storage" will have to be delayed to 4.9.4, so removing this.

src/panels/places/placesitem.cpp

index f78c98b76d1202cb3c5acaac2efc88094d1f8ea1..75e14d0fb01140d4099c42db025a661c9df934f4 100644 (file)
@@ -268,8 +268,7 @@ void PlacesItem::initializeDevice(const QString& udi)
     } else if (m_disc && (m_disc->availableContent() & Solid::OpticalDisc::Audio) != 0) {
         const QString device = m_device.as<Solid::Block>()->device();
         setUrl(QString("audiocd:/?device=%1").arg(device));
-    } else if (m_mtp && m_mtp->supportedProtocols().contains("mtp")) {
-        setText(m_device.product());
+    } else if (m_mtp) {
         setUrl(QString("mtp:udi=%1").arg(m_device.udi()));
     }
 }