mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
0fb536d1b5
commit
e0ecb8f861
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue