mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
WebPage: Add Q_UNREACHABLE to createWindow(WebBrowserWindow)
This commit is contained in:
parent
6857270057
commit
e161e45c41
@ -592,8 +592,11 @@ QWebEnginePage* WebPage::createWindow(QWebEnginePage::WebWindowType type)
|
|||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QWebEnginePage::WebBrowserWindow:
|
case QWebEnginePage::WebBrowserWindow:
|
||||||
// TODO: Investigate when this is called from html
|
// WebBrowserWindow is only called after Shift+LeftClick on link, but we handle
|
||||||
qDebug() << "WebBrowserWindow";
|
// this case ourselves, so it should never be called.
|
||||||
|
qWarning() << "Asked to created WebBrowserWindow!";
|
||||||
|
Q_UNREACHABLE();
|
||||||
|
|
||||||
case QWebEnginePage::WebBrowserTab: {
|
case QWebEnginePage::WebBrowserTab: {
|
||||||
int index = window->tabWidget()->addView(QUrl(), Qz::NT_CleanSelectedTab);
|
int index = window->tabWidget()->addView(QUrl(), Qz::NT_CleanSelectedTab);
|
||||||
TabbedWebView* view = window->weView(index);
|
TabbedWebView* view = window->weView(index);
|
||||||
|
Loading…
Reference in New Issue
Block a user