aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/widgets
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-05-28 10:21:30 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-05-28 10:21:30 +0200
commit49f1351231a71969160b2574603d198af3cf67b3 (patch)
tree3f74847f218efc8cf166f3f49e663177daefff41 /src/mainwindow/widgets
parentSwap to new tab after creating it (diff)
downloadsmolbote-49f1351231a71969160b2574603d198af3cf67b3.tar.xz
Remove Window::addTab(WebView *view)
Diffstat (limited to 'src/mainwindow/widgets')
-rw-r--r--src/mainwindow/widgets/tabwidget.cpp2
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) {