diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-07-07 02:41:34 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-07 02:41:34 +0200 |
commit | 924d9936719a780488cdafecd77346c84a620c79 (patch) | |
tree | a07591b1ea52d544ebb9e40639805598461955bc /konqueror/iconview | |
parent | 50d21388fb27b915d32b406fac9e587b632413e8 (diff) | |
download | tdebase-924d9936719a780488cdafecd77346c84a620c79.tar.gz tdebase-924d9936719a780488cdafecd77346c84a620c79.zip |
Konqueror: Deselect items that are hidden by the filter during Select and Deselect
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'konqueror/iconview')
-rw-r--r-- | konqueror/iconview/konq_iconview.cc | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/konqueror/iconview/konq_iconview.cc b/konqueror/iconview/konq_iconview.cc index 595c02948..5efc1e751 100644 --- a/konqueror/iconview/konq_iconview.cc +++ b/konqueror/iconview/konq_iconview.cc @@ -557,10 +557,15 @@ void KonqKfmIconView::slotSelect() m_pIconView->blockSignals( true ); TQIconViewItem *it = m_pIconView->firstItem(); - while ( it ) - { - if ( re.exactMatch( it->text() ) ) - it->setSelected( true, true ); + while ( it ) { + if ( it->isVisible() ) { + if ( re.exactMatch( it->text() ) ) { + it->setSelected( true, true ); + } + } + else { + it->setSelected( false, true ); + } it = it->nextItem(); } @@ -584,10 +589,15 @@ void KonqKfmIconView::slotUnselect() m_pIconView->blockSignals( true ); TQIconViewItem *it = m_pIconView->firstItem(); - while ( it ) - { - if ( re.exactMatch( it->text() ) ) - it->setSelected( false, true ); + while ( it ) { + if ( it->isVisible() ) { + if ( re.exactMatch( it->text() ) ) { + it->setSelected( false, true ); + } + } + else { + it->setSelected( false, true ); + } it = it->nextItem(); } |