summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_iconviewwidget.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-12-14 16:55:11 -0600
committerTimothy Pearson <[email protected]>2013-12-14 16:55:11 -0600
commitf534a63b03828cb81eaaf676a404bfa862a4e0c1 (patch)
tree51aa218556241c9598e4b4fe7ce049c7c0b441ff /libkonq/konq_iconviewwidget.cc
parentb88d1a9c266a40f669b8efbe709449e14872c78f (diff)
downloadtdebase-f534a63b03828cb81eaaf676a404bfa862a4e0c1.tar.gz
tdebase-f534a63b03828cb81eaaf676a404bfa862a4e0c1.zip
Minor code cleanup
Diffstat (limited to 'libkonq/konq_iconviewwidget.cc')
-rw-r--r--libkonq/konq_iconviewwidget.cc9
1 files changed, 6 insertions, 3 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++;
+ }
}
}