┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp11
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();
}