From c8352009ceb6b9240ef7c1ad5be93f42312b59a2 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 12 Apr 2025 19:05:24 +0530 Subject: Switch to using map for configuration --- src/widgets/WebViewStack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/widgets/WebViewStack.cpp') diff --git a/src/widgets/WebViewStack.cpp b/src/widgets/WebViewStack.cpp index f15ab64..bdec508 100644 --- a/src/widgets/WebViewStack.cpp +++ b/src/widgets/WebViewStack.cpp @@ -126,10 +126,10 @@ void WebViewStack::close(WebViewId webview_id) { webview->deleteLater(); if (webview_list.isEmpty()) { - if (configuration->close_window_when_no_views) { + if (configuration->close_window_when_no_views()) { emit close_window_requested(); } else { - create_new_webview(configuration->new_view_url, true); + create_new_webview(configuration->new_view_url(), true); } } } @@ -204,7 +204,7 @@ QUrl WebViewStack::current_url() { auto *webview = current_webview(); if (webview == nullptr) { qDebug() << "No current webview"; - return QUrl{configuration->new_view_url}; + return QUrl{configuration->new_view_url()}; } return webview->url(); -- cgit v1.3.1