diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tabwindow/tabwidget.cpp | 4 | ||||
-rw-r--r-- | src/webwindow/webwindow.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp index bb62ca27..322c45e1 100644 --- a/src/tabwindow/tabwidget.cpp +++ b/src/tabwindow/tabwidget.cpp @@ -415,7 +415,7 @@ void TabWidget::currentChanged(int newIndex) void TabWidget::updateNewTabButtonPosition() { - if (isFullScreen()) + if (window()->isFullScreen()) return; setUpdatesEnabled(false); @@ -825,7 +825,7 @@ void TabWidget::setFullScreen(bool makeFullScreen) tabBar()->setVisible(!makeFullScreen); _addTabButton->setVisible(!makeFullScreen); - KToggleFullScreenAction::setFullScreen(this, makeFullScreen); + KToggleFullScreenAction::setFullScreen(window(), makeFullScreen); for (int i = 0; i < count(); i++) webWindow(i)->setWidgetsHidden(makeFullScreen); diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index ab002459..1225fb07 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -150,7 +150,7 @@ WebWindow::WebWindow(QWidget *parent, bool isPrivateBrowsing, WebPage *pg) updateHistoryActions(); - if (parent && parent->isFullScreen()) + if (window()->isFullScreen()) setWidgetsHidden(true); } |