aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4d3870c..70dc7ea 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -229,7 +229,7 @@ void MainWindow::showSettingsDialog()
void MainWindow::setProfile(WebEngineProfile *profile)
{
- Q_ASSERT(profile != nullptr);
+ Q_CHECK_PTR(profile);
tabBar->setProfile(profile);
}
@@ -267,7 +267,7 @@ void MainWindow::toggleFullscreen()
void MainWindow::handleTabChanged(WebView *view)
{
- Q_ASSERT(view != nullptr);
+ Q_CHECK_PTR(view);
m_currentView = view;