kdirlister + media:/ ioslave question

Michael Brade brade at kde.org
Mon Feb 7 17:57:54 GMT 2005


On Sunday 06 February 2005 23:54, Martin Koller wrote:
> Checking http://bugs.kde.org/show_bug.cgi?id=62627
> I found out, that when I have the desktop configured to only show mounted
> HD volumes, kdesktop gets the signal "refreshItems" when a HD is mounted,
> but it gets "deleteItem" when the HD is unmounted.
How did you find this? And is this a DCOP signal or a signal directly from 
KDirLister? I haven't had a look at the code yet...

> I would assume that KDirLister would emit "newItems" when the HD is
> mounted, which would also lead to kdestop being able to show the new icon.
Yes, indeed. KDirLister only emits refreshItems if the item exists already and 
was changed (name, size, etc...). However, I'm quite sure KDirLister does 
this properly, so I'm not sure where the refreshItems comes from.

> I can work around the problem by calling slotNewItems myself in
> slotRefreshItems, but probably it's better to fix the core problem.
Hm?! That sounds like a really bad solution. And remember that it is the 
io-slave that will send the entries and KDirWatch that signals changes to a 
directory. KDirLister only works on this information, so I'd first check that 
this information is correct. BTW, I've got my last exam on Thursday, so until 
then I won't investigate further on this.

-- 
Michael Brade;                 KDE Developer, Student of Computer Science
  |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
  °--web: http://www.kde.org/people/michaelb.html

KDE 3: The Next Generation in Desktop Experience
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050207/18dfd90a/attachment.sig>


More information about the kde-core-devel mailing list