summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marten <[email protected]>2017-07-22 16:27:22 +0100
committerJonathan Marten <[email protected]>2017-07-22 16:27:22 +0100
commita1eb2c0d8496bdc1d9ff848fbccc90e6ee6f709c (patch)
tree7812ba2925ed9ec6742a6fa2257e0b17dcbde940
parent87315f412603e76ad8a7f38a4bbf93a7dea9070a (diff)
KMixDeviceManager: Fix getUDI_ALSA()
Not sure whether the original would ever have worked - QString::arg() does not modify the original string. Eliminates the runtime message: kmix/default QString::arg: QString::arg: Argument missing: "hw%i" , 2
-rw-r--r--core/kmixdevicemanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/kmixdevicemanager.cpp b/core/kmixdevicemanager.cpp
index e31fefe..dc5c6b7 100644
--- a/core/kmixdevicemanager.cpp
+++ b/core/kmixdevicemanager.cpp
@@ -59,9 +59,7 @@ void KMixDeviceManager::initHotplug()
QString KMixDeviceManager::getUDI_ALSA(int num)
{
- QString udi("hw%i");
- udi.arg(num);
- return udi;
+ return (QString("hw%1").arg(num));
#if 0
QList<Solid::Device> dl = Solid::Device::listFromType(Solid::DeviceInterface::AudioInterface);