diff options
Diffstat (limited to 'src/mainwindow/widgets')
-rw-r--r-- | src/mainwindow/widgets/tabwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow/widgets/tabwidget.cpp b/src/mainwindow/widgets/tabwidget.cpp index 97c2717..9608efc 100644 --- a/src/mainwindow/widgets/tabwidget.cpp +++ b/src/mainwindow/widgets/tabwidget.cpp @@ -65,7 +65,7 @@ TabWidget::~TabWidget() int TabWidget::addTab(WebView *view) { - Q_CHECK_PTR(view); + Q_ASSERT_X(view != nullptr, "TabWidget::addTab", "Tried to add null view"); int idx = QTabWidget::addTab(view, view->title()); connect(view, &WebView::titleChanged, [this, view](const QString &title) { |