diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-23 12:14:22 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-01-24 01:02:41 +0100 |
commit | 755fbfa4a105bdedc99bf9720cd61a235c4d31f8 (patch) | |
tree | b9ced37b47515038431837e2217ce8ba62e7e95e /kdeui/kactionselector.cpp | |
parent | c3bd56014f20733425c722956bd2c0e940b2329f (diff) | |
download | tdelibs-755fbfa4a105bdedc99bf9720cd61a235c4d31f8.tar.gz tdelibs-755fbfa4a105bdedc99bf9720cd61a235c4d31f8.zip |
Fix old upstream KDE 3 bug #111827
(cherry picked from commit 07c48c43ff72c237e4028154f4594102b798073f)
Diffstat (limited to 'kdeui/kactionselector.cpp')
-rw-r--r-- | kdeui/kactionselector.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kdeui/kactionselector.cpp b/kdeui/kactionselector.cpp index 8923cbd4f..ebaffd48e 100644 --- a/kdeui/kactionselector.cpp +++ b/kdeui/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(); |