summaryrefslogtreecommitdiffstats
path: root/konqueror/listview/konq_listviewwidget.cc
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-07-07 03:00:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-07-07 03:01:07 +0200
commit1bff22f05126a7c02007c3388669f04a3330a15e (patch)
tree93d20634f9f9e4a21b67cfebd4c53201e8fa1cd7 /konqueror/listview/konq_listviewwidget.cc
parentc623f1cf8d995ea1d7be3c1b7b1132dd0cb7b812 (diff)
downloadtdebase-1bff22f05126a7c02007c3388669f04a3330a15e.tar.gz
tdebase-1bff22f05126a7c02007c3388669f04a3330a15e.zip
Konqueror: Do not include items that are selected but hidden by the filter
for operations such as copying, moving, deleting,... Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e69e2fb93014948e7734e4828330455b2a15fe7d)
Diffstat (limited to 'konqueror/listview/konq_listviewwidget.cc')
-rw-r--r--konqueror/listview/konq_listviewwidget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/konqueror/listview/konq_listviewwidget.cc b/konqueror/listview/konq_listviewwidget.cc
index ad7ada2c4..4d7866f64 100644
--- a/konqueror/listview/konq_listviewwidget.cc
+++ b/konqueror/listview/konq_listviewwidget.cc
@@ -961,7 +961,7 @@ void KonqBaseListViewWidget::selectedItems( TQPtrList<KonqBaseListViewItem> *_li
{
iterator it = begin();
for ( ; it != end(); it++ )
- if ( it->isSelected() )
+ if ( it->isVisible() && it->isSelected() )
_list->append( &*it );
}
@@ -982,7 +982,7 @@ KFileItemList KonqBaseListViewWidget::selectedFileItems()
KFileItemList list;
iterator it = begin();
for ( ; it != end(); it++ )
- if ( it->isSelected() )
+ if ( it->isVisible() && it->isSelected() )
list.append( it->item() );
return list;
}
@@ -993,7 +993,7 @@ KURL::List KonqBaseListViewWidget::selectedUrls( bool mostLocal )
KURL::List list;
iterator it = begin();
for ( ; it != end(); it++ )
- if ( it->isSelected() )
+ if ( it->isVisible() && it->isSelected() )
list.append( mostLocal ? it->item()->mostLocalURL( dummy ) : it->item()->url() );
return list;
}