[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KIO::is_manually_mounted() and device UUIDs
From:       David Faure <faure () kde ! org>
Date:       2007-04-30 17:13:57
Message-ID: 200704301914.00345.faure () kde ! org
[Download RAW message or body]

On Monday 30 April 2007, David Faure wrote:
> They need KMountPoint for their icon (mounted != unmounted, but that's KMountPoint::currentMountPoints,
> which gets device names, so no problem there...) and for their url in KDesktopFile::readUrl() (but that
> code looks wrong to me -- all such desktop files that I can see have a MountPoint entry anyway,
> so we could just use that).

Ah! Of course, 10mn after sending the mail, the brain goes "ding!".
Solution: moving the icon-determination code one level up (to KFileItem instead of
now-useless KDEDesktopMimeType) and fixing readUrl() to use the MountPoint= key instead.

So now KMountPoint can move up to kio and do the right thing there using solid.
Phew. Just in time :)

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic