diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-21 12:55:37 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-21 12:55:37 +0200 |
| commit | 21afec7d459855808444ef8157a2249b2fb2782c (patch) | |
| tree | 837a9914bc75314ab6946f8b1a2a9f87c19cb0dc /src/webwindow.hpp | |
| parent | 121297159b40b9cd8d5016893e83e9f01d0795ec (diff) | |
resolve quit segfault
Diffstat (limited to 'src/webwindow.hpp')
| -rw-r--r-- | src/webwindow.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/webwindow.hpp b/src/webwindow.hpp index 1d4a83e..c29a953 100644 --- a/src/webwindow.hpp +++ b/src/webwindow.hpp @@ -14,10 +14,10 @@ class WebWindow : public QMainWindow { private: - QWebEngineProfile profile; - QWebEnginePage page; - QWebEngineView view; - PermissionManager perm; + QWebEngineProfile *profile; + QWebEnginePage *page; + QWebEngineView *view; + PermissionManager *perm; void web_configure(); void permission_requested(const QUrl origin, QWebEnginePage::Feature feature); @@ -27,7 +27,8 @@ public: WebWindow(const QString &url); void connect_icon_changed(std::function<void(const QIcon)> fn); void connect_title_changed(std::function<void(const QString)> fn); - void connect_notification(std::function<void(std::unique_ptr<QWebEngineNotification>)> fn); + void connect_notification( + std::function<void(std::unique_ptr<QWebEngineNotification>)> fn); PermissionManager &permissions(); void reset_cookies(); void toggle_visibility(); |