diff options
| author | Dawit Alemayehu <[email protected]> | 2012-10-03 15:09:58 -0400 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2012-10-03 15:09:58 -0400 |
| commit | bc662543042a7677538ecb95a16f31b460b2b661 (patch) | |
| tree | a0f8636013eb69e1fd4ff68906f1a10a9f128896 /src/dolphinmainwindow.cpp | |
| parent | b7a8327c305e3d5bd92bb79889fafc2a75a82adb (diff) | |
| parent | 2277ccaf2369fccf7346dc931c6ff1a86c5b7d3b (diff) | |
Merge branch '4.9'
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 3bf3b3f55..b4a25a7cf 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -2061,7 +2061,13 @@ void DolphinMainWindow::createSecondaryView(int tabIndex) const int newWidth = (viewTab.primaryView->width() - splitter->handleWidth()) / 2; const DolphinView* view = viewTab.primaryView->view(); - viewTab.secondaryView = createViewContainer(view->url(), 0); + // The final parent of the new view container will be set by adding it + // to the splitter. However, we must make sure that the DolphinMainWindow + // is a parent of the view container already when it is constructed + // because this enables the container's KFileItemModel to assign its + // dir lister to the right main window. The dir lister can then cache + // authentication data. + viewTab.secondaryView = createViewContainer(view->url(), this); splitter->addWidget(viewTab.secondaryView); splitter->setSizes(QList<int>() << newWidth << newWidth); |
