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

List:       kde-commits
Subject:    kdebase/kcontrol/usbview
From:       Markus Brueffer <markus () brueffer ! de>
Date:       2004-07-07 22:05:15
Message-ID: 20040707220515.709DD16B22 () office ! kde ! org
[Download RAW message or body]

CVS commit by markusb: 

- Fix nesting of USB devices
- Fix/Speedup initial construction of the device tree
- Fix typo in comment

Reviewed by:	Andy Fawcett <andy@athame.co.uk>


  M +2 -2      kcmusb.cpp   1.18


--- kdebase/kcontrol/usbview/kcmusb.cpp  #1.17:1.18
@@ -118,5 +118,5 @@ void USBViewer::refresh()
             else
               {
-                QListViewItem *parent = _items.find(it.current()->bus()*256+1);
+                QListViewItem *parent = new_items.find(it.current()->bus()*256+it.current()->parent());
                 if (parent)
                   {
@@ -140,5 +140,5 @@ void USBViewer::refresh()
     }
 
-    // delete all items not in new_list
+    // delete all items not in new_items
     {
         QIntDictIterator<QListViewItem> it(_items);


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

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