1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Set current tab as parent for duplicated tab

Summary: BUG: 408518

Test Plan: Duplicate tab, the change is visible in TreeView of Vertical Tabs plugin.

Reviewers: #falkon, drosca

Reviewed By: #falkon, drosca

Subscribers: falkon, drosca

Tags: #falkon

Differential Revision: https://phabricator.kde.org/D24933
This commit is contained in:
Juraj Oravec 2019-10-31 10:13:54 +01:00 committed by David Rosca
parent fcfdc340ac
commit 8f2cf86117
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -731,6 +731,7 @@ int TabWidget::duplicateTab(int index)
int id = addView(QUrl(), webTab->title(), Qz::NT_CleanSelectedTab);
weTab(id)->p_restoreTab(webTab->url(), webTab->historyData(), webTab->zoomLevel());
weTab(id)->setParentTab(webTab);
return id;
}