From 3ed19b2a1e9047cef4a505d82c55cdba8201f0e2 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 11 Jan 2012 13:49:38 -0600 Subject: Fix error message when clicking on System icon on sidebar in konqueror This closes Bug 723 --- konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(entries).first(); // qlist sucks for constness + KFileItem * firstItem = const_cast(entries).last(); // qlist sucks for constness // Find parent item - it's the same for all the items KURL dir( firstItem->url().url(-1) ); -- cgit v1.2.1