mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Make it build with QT_STRICT_ITERATORS
This commit is contained in:
parent
950e6f5d15
commit
81c99da7e0
1 changed files with 3 additions and 3 deletions
|
@ -271,12 +271,12 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs)
|
||||||
|
|
||||||
// Open each directory inside a new tab. If the "split view" option has been enabled,
|
// Open each directory inside a new tab. If the "split view" option has been enabled,
|
||||||
// always show two directories within one tab.
|
// always show two directories within one tab.
|
||||||
QList<KUrl>::const_iterator it = urlsToOpen.begin();
|
QList<KUrl>::const_iterator it = urlsToOpen.constBegin();
|
||||||
while (it != urlsToOpen.end()) {
|
while (it != urlsToOpen.constEnd()) {
|
||||||
openNewTab(*it);
|
openNewTab(*it);
|
||||||
++it;
|
++it;
|
||||||
|
|
||||||
if (hasSplitView && (it != urlsToOpen.end())) {
|
if (hasSplitView && (it != urlsToOpen.constEnd())) {
|
||||||
const int tabIndex = m_viewTab.count() - 1;
|
const int tabIndex = m_viewTab.count() - 1;
|
||||||
m_viewTab[tabIndex].secondaryView->setUrl(*it);
|
m_viewTab[tabIndex].secondaryView->setUrl(*it);
|
||||||
++it;
|
++it;
|
||||||
|
|
Loading…
Reference in a new issue