Make it build with QT_STRICT_ITERATORS

Redo commit 81c99da7e0 by Kevin Ottens

Was removed by mistake during the last merge with KDE/4.11, sorry!
This commit is contained in:
Wolfgang Bauer 2013-11-06 17:53:43 +01:00
parent 0fb536d1b5
commit e0ecb8f861

View file

@ -258,12 +258,12 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs)
// Open each directory inside a new tab. If the "split view" option has been enabled,
// always show two directories within one tab.
QList<KUrl>::const_iterator it = dirs.begin();
while (it != dirs.end()) {
QList<KUrl>::const_iterator it = dirs.constBegin();
while (it != dirs.constEnd()) {
openNewTab(*it);
++it;
if (hasSplitView && (it != dirs.end())) {
if (hasSplitView && (it != dirs.constEnd())) {
const int tabIndex = m_viewTab.count() - 1;
m_viewTab[tabIndex].secondaryView->setUrl(*it);
++it;