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

This closes Bug 723
(cherry picked from commit 3ed19b2a1e)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 41b2f3397a
commit 5bcc5923f8

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