diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-11 13:49:38 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-11 13:49:38 -0600 |
commit | 3ed19b2a1e9047cef4a505d82c55cdba8201f0e2 (patch) | |
tree | 6b27bed4a9a4ca28a779e3855e03b5108e493282 /konqueror/sidebar/trees | |
parent | d331e3d6cbc6fbd955fdc1bafe98b79da56cb282 (diff) | |
download | tdebase-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/sidebar/trees')
-rw-r--r-- | konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp | 2 |
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) ); |