summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-23 12:14:22 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-23 12:14:22 -0600
commit07c48c43ff72c237e4028154f4594102b798073f (patch)
treed19de96abf5dacbcc6eb1be4f343a7f18aa8d182
parent850dc20bb065d12ef172f36bb5ff6ade49c86866 (diff)
downloadtdelibs-07c48c43ff72c237e4028154f4594102b798073f.tar.gz
tdelibs-07c48c43ff72c237e4028154f4594102b798073f.zip
Fix old upstream KDE 3 bug #111827
-rw-r--r--tdeui/kactionselector.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tdeui/kactionselector.cpp b/tdeui/kactionselector.cpp
index 8923cbd4f..ebaffd48e 100644
--- a/tdeui/kactionselector.cpp
+++ b/tdeui/kactionselector.cpp
@@ -423,8 +423,9 @@ void KActionSelector::buttonAddClicked()
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 @@ void KActionSelector::buttonRemoveClicked()
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();