diff options
| author | Tobias Koenig <[email protected]> | 2007-10-01 08:00:48 +0000 |
|---|---|---|
| committer | Tobias Koenig <[email protected]> | 2007-10-01 08:00:48 +0000 |
| commit | 29a1b2642139907ca9c448138b6aa110b64c3a03 (patch) | |
| tree | f4bdec8b83b1f1d3b97630741a1b471d022aea70 /src/dolphinmainwindow.cpp | |
| parent | fd805228ae8092dc51647354d3fb83bef4197eb0 (diff) | |
Making KFileItemList value based.
svn path=/trunk/KDE/kdebase/apps/; revision=719514
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index f3dbfcf6e..fd7f65aa5 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -493,14 +493,9 @@ void DolphinMainWindow::deleteItems() void DolphinMainWindow::properties() { - QList<KFileItem> list = m_activeViewContainer->view()->selectedItems(); - // ### KPropertiesDialog still uses pointer-based KFileItemList - KFileItemList lst; - // Can't be a const_iterator :( - for ( QList<KFileItem>::iterator it = list.begin(), end = list.end() ; it != end ; ++it ) { - lst << & *it; // ugly! - } - KPropertiesDialog dialog(lst, this); + const KFileItemList list = m_activeViewContainer->view()->selectedItems(); + + KPropertiesDialog dialog(list, this); dialog.exec(); } |
