Fix error message when clicking on System icon on sidebar in konqueror

This closes Bug 723
pull/2/head
Timothy Pearson 12 years ago
parent d331e3d6cb
commit 3ed19b2a1e

@ -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) );

Loading…
Cancel
Save