summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libkonq/konq_iconviewwidget.cc9
-rw-r--r--libkonq/konq_operations.cc6
2 files changed, 10 insertions, 5 deletions
diff --git a/libkonq/konq_iconviewwidget.cc b/libkonq/konq_iconviewwidget.cc
index 78ba9abef..c5d255bf8 100644
--- a/libkonq/konq_iconviewwidget.cc
+++ b/libkonq/konq_iconviewwidget.cc
@@ -1099,12 +1099,15 @@ void KonqIconViewWidget::slotSelectionChanged()
KURL url = item->url();
TQString local_path = item->localPath();
- if ( url.directory(false) == TDEGlobalSettings::trashPath() )
+ if ( url.directory(false) == TDEGlobalSettings::trashPath() ) {
bInTrash = true;
- if ( KProtocolInfo::supportsDeleting( url ) )
+ }
+ if ( KProtocolInfo::supportsDeleting( url ) ) {
canDel++;
- if ( !local_path.isEmpty() )
+ }
+ if ( !local_path.isEmpty() ) {
canTrash++;
+ }
}
}
diff --git a/libkonq/konq_operations.cc b/libkonq/konq_operations.cc
index 6e899c604..ea89e39d0 100644
--- a/libkonq/konq_operations.cc
+++ b/libkonq/konq_operations.cc
@@ -177,9 +177,11 @@ void KonqOperations::copy( TQWidget * parent, int method, const KURL::List & sel
void KonqOperations::_del( int method, const KURL::List & _selectedURLs, ConfirmationType confirmation )
{
KURL::List selectedURLs;
- for (KURL::List::ConstIterator it = _selectedURLs.begin(); it != _selectedURLs.end(); ++it)
- if (KProtocolInfo::supportsDeleting(*it))
+ for (KURL::List::ConstIterator it = _selectedURLs.begin(); it != _selectedURLs.end(); ++it) {
+ if (KProtocolInfo::supportsDeleting(*it)) {
selectedURLs.append(*it);
+ }
+ }
if (selectedURLs.isEmpty()) {
delete this;
return;