summaryrefslogtreecommitdiffstats
path: root/konqueror
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2017-07-07 03:00:39 +0200
committerSlávek Banko <[email protected]>2017-07-07 03:00:39 +0200
commite69e2fb93014948e7734e4828330455b2a15fe7d (patch)
tree40f2f61899a110551b9a592b8e9181ebd0d9c78f /konqueror
parent924d9936719a780488cdafecd77346c84a620c79 (diff)
downloadtdebase-e69e2fb93014948e7734e4828330455b2a15fe7d.tar.gz
tdebase-e69e2fb93014948e7734e4828330455b2a15fe7d.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 <[email protected]>
Diffstat (limited to 'konqueror')
-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 b7dd24c4b..4c1198325 100644
--- a/konqueror/listview/konq_listviewwidget.cc
+++ b/konqueror/listview/konq_listviewwidget.cc
@@ -987,7 +987,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 );
}
@@ -1008,7 +1008,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;
}
@@ -1019,7 +1019,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;
}