diff options
Diffstat (limited to 'kscd/kcompactdisc.cpp')
-rw-r--r-- | kscd/kcompactdisc.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/kscd/kcompactdisc.cpp b/kscd/kcompactdisc.cpp index debfc6e3..839a6577 100644 --- a/kscd/kcompactdisc.cpp +++ b/kscd/kcompactdisc.cpp @@ -241,15 +241,14 @@ TQString TDECompactDisc::urlToDevice(const TQString& device) DCOPRef mediamanager("kded", "mediamanager"); DCOPReply reply = mediamanager.call("properties(TQString)", deviceUrl.fileName()); TQStringList properties = reply; - if (!reply.isValid() || properties.count() < 6) - { + if (!reply.isValid() || properties.count() < 7 ) { kdError() << "Invalid reply from mediamanager" << endl; return defaultDevice; } - else - { - kdDebug() << "Reply from mediamanager " << properties[5] << endl; - return properties[5]; + else { + /* see DEVICE_NODE in tdebase/tdeioslave/media/libmediacommon/medium.h */ + kdDebug() << "Reply from mediamanager " << properties[6] << endl; + return properties[6]; } } |