[PATCH] enable external drives list in kickoff again

Marco Martin notmart at gmail.com
Thu Mar 27 20:46:04 CET 2008


Hi,
i was trying to enable the listing of removable media in kickoff again
the problem was that SystemModel::rowCount() returned always 0
so i tried to count how many devices there are in the model (with 
d->numDevices in the patch) because if i understood correctly is what 
rowCount() should return.
now putting 
case REMOVABLE_ROW:
  return d->numDevices;
seems not to work, but it works with
case REMOVABLE_ROW:
  return d->placesModel->rowCount();

that i feel is well, wrong?
did i miss something on how SystemModel works or there is some breakage 
somewhere?

Cheers,
Marco Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable_devices.diff
Type: text/x-diff
Size: 1315 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080327/2df2db3d/attachment.bin 


More information about the Panel-devel mailing list