diff options
| author | arnav dhamija <[email protected]> | 2016-09-27 10:37:08 +0530 |
|---|---|---|
| committer | arnav dhamija <[email protected]> | 2016-09-27 10:37:08 +0530 |
| commit | a097a1277a02a5dd0f6d687e8bc2c3a7ec399efd (patch) | |
| tree | 7367a37fc0b8c59402ba42f781453e6cd0d5103c /src/dolphintabpage.cpp | |
| parent | 45d90a61f8ceb36d302c90ad8d02d3ded964c92d (diff) | |
Changed shortcut, but need to fix async conditions
Diffstat (limited to 'src/dolphintabpage.cpp')
| -rw-r--r-- | src/dolphintabpage.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dolphintabpage.cpp b/src/dolphintabpage.cpp index e6440af5e..3491dbad8 100644 --- a/src/dolphintabpage.cpp +++ b/src/dolphintabpage.cpp @@ -75,13 +75,9 @@ void DolphinTabPage::setSplitViewEnabled(bool enabled, bool stash /*= false*/) { if (m_splitViewEnabled != enabled) { m_splitViewEnabled = enabled; - QUrl url; + if (enabled) { - if (stash) { - url = QUrl("stash:/"); - } else { - url = m_primaryViewContainer->url(); - } + const QUrl& url = (stash) ? QUrl("stash:/") : m_primaryViewContainer->url(); m_secondaryViewContainer = createViewContainer(url); const bool placesSelectorVisible = m_primaryViewContainer->urlNavigator()->isPlacesSelectorVisible(); |
