mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
MouseGestures: Use same code to create new tab as BrowserWindow
Closes #2089
This commit is contained in:
parent
8206dea201
commit
7fff4b627b
@ -1,6 +1,6 @@
|
||||
/* ============================================================
|
||||
* Mouse Gestures plugin for QupZilla
|
||||
* Copyright (C) 2013-2014 David Rosca <nowrep@gmail.com>
|
||||
* Copyright (C) 2013-2016 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -183,7 +183,11 @@ void MouseGestures::downGestured()
|
||||
return;
|
||||
|
||||
TabWidget* tabWidget = window->tabWidget();
|
||||
tabWidget->addView(QUrl(), Qz::NT_SelectedNewEmptyTab);
|
||||
tabWidget->addView(QUrl(), Qz::NT_SelectedNewEmptyTab, true);
|
||||
tabWidget->setCurrentTabFresh(true);
|
||||
|
||||
if (window->isFullScreen())
|
||||
window->showNavigationWithFullScreen();
|
||||
}
|
||||
|
||||
void MouseGestures::leftGestured()
|
||||
|
Loading…
Reference in New Issue
Block a user