mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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) {
|
||||
case QWebEnginePage::WebBrowserWindow:
|
||||
// TODO: Investigate when this is called from html
|
||||
qDebug() << "WebBrowserWindow";
|
||||
// WebBrowserWindow is only called after Shift+LeftClick on link, but we handle
|
||||
// this case ourselves, so it should never be called.
|
||||
qWarning() << "Asked to created WebBrowserWindow!";
|
||||
Q_UNREACHABLE();
|
||||
|
||||
case QWebEnginePage::WebBrowserTab: {
|
||||
int index = window->tabWidget()->addView(QUrl(), Qz::NT_CleanSelectedTab);
|
||||
TabbedWebView* view = window->weView(index);
|
||||
|
|
Loading…
Reference in New Issue
Block a user