LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kdelibs-kactionselector-multiple-item-movement.patch of Package kdelibs3 (Project KDE:KDE3)

--- a/kdeui/kactionselector.cpp	2005-09-01 00:04:41.000000000 +0800
+++ b/kdeui/kactionselector.cpp	2005-09-01 00:01:02.000000000 +0800
@@ -423,8 +423,9 @@
       d->selectedListBox->insertItem( item, insertionIndex( d->selectedListBox, d->selectedInsertionPolicy ) );
       d->selectedListBox->setCurrentItem( item );
       emit added( item );
-    }
-    item = item->next();
+      item = d->availableListBox->firstItem();
+    } else
+      item = item->next();
   }
   if ( d->selectedInsertionPolicy == Sorted )
     d->selectedListBox->sort();
@@ -441,8 +442,9 @@
       d->availableListBox->insertItem( item, insertionIndex( d->availableListBox, d->availableInsertionPolicy ) );
       d->availableListBox->setCurrentItem( item );
       emit removed( item );
-    }
-    item = item->next();
+      item = d->selectedListBox->firstItem();
+    } else
+      item = item->next();
   }
   if ( d->availableInsertionPolicy == Sorted )
     d->availableListBox->sort();