summaryrefslogtreecommitdiffstats
path: root/konqueror
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-11 13:49:38 -0600
committerTimothy Pearson <[email protected]>2012-01-11 13:49:38 -0600
commit3ed19b2a1e9047cef4a505d82c55cdba8201f0e2 (patch)
tree6b27bed4a9a4ca28a779e3855e03b5108e493282 /konqueror
parentd331e3d6cbc6fbd955fdc1bafe98b79da56cb282 (diff)
downloadtdebase-3ed19b2a1e9047cef4a505d82c55cdba8201f0e2.tar.gz
tdebase-3ed19b2a1e9047cef4a505d82c55cdba8201f0e2.zip
Fix error message when clicking on System icon on sidebar in konqueror
This closes Bug 723
Diffstat (limited to 'konqueror')
-rw-r--r--konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp b/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp
index ac26b1285..315bfbc15 100644
--- a/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp
+++ b/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp
@@ -400,7 +400,7 @@ void KonqSidebarDirTreeModule::slotNewItems( const KFileItemList& entries )
kdDebug(1201) << this << " KonqSidebarDirTreeModule::slotNewItems " << entries.count() << endl;
Q_ASSERT(entries.count());
- KFileItem * firstItem = const_cast<KFileItemList&>(entries).first(); // qlist sucks for constness
+ KFileItem * firstItem = const_cast<KFileItemList&>(entries).last(); // qlist sucks for constness
// Find parent item - it's the same for all the items
KURL dir( firstItem->url().url(-1) );