diff options
| author | arnav dhamija <[email protected]> | 2016-09-26 22:25:42 +0530 |
|---|---|---|
| committer | arnav dhamija <[email protected]> | 2016-09-26 22:25:42 +0530 |
| commit | 2704b3693f86b31ac033597c63898c3aef16edf7 (patch) | |
| tree | d075a94f1652a8793cafed821f1f42996ea5186c /src/dolphintabpage.cpp | |
| parent | 67099640b90588af1c72c340756253400da3e95b (diff) | |
Added the GUI button for quick stashing
Diffstat (limited to 'src/dolphintabpage.cpp')
| -rw-r--r-- | src/dolphintabpage.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dolphintabpage.cpp b/src/dolphintabpage.cpp index c674e1eb0..e6440af5e 100644 --- a/src/dolphintabpage.cpp +++ b/src/dolphintabpage.cpp @@ -71,13 +71,17 @@ bool DolphinTabPage::splitViewEnabled() const return m_splitViewEnabled; } -void DolphinTabPage::setSplitViewEnabled(bool enabled) +void DolphinTabPage::setSplitViewEnabled(bool enabled, bool stash /*= false*/) { if (m_splitViewEnabled != enabled) { m_splitViewEnabled = enabled; - + QUrl url; if (enabled) { - const QUrl& url = m_primaryViewContainer->url(); + if (stash) { + url = QUrl("stash:/"); + } else { + url = m_primaryViewContainer->url(); + } m_secondaryViewContainer = createViewContainer(url); const bool placesSelectorVisible = m_primaryViewContainer->urlNavigator()->isPlacesSelectorVisible(); |
