diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-05 23:45:55 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-06 00:47:02 +0530 |
| commit | bbde1438e9c31cc83d8c4835ea97a0eaeae4e192 (patch) | |
| tree | 88840b73176dee8bd7da70c36f19a32bafdd5d6c /src/widgets/BrowserWindow.cpp | |
| parent | b77a6444f94ce8d05962af9039c31851e224be5c (diff) | |
| download | null-browser-bbde1438e9c31cc83d8c4835ea97a0eaeae4e192.tar.gz null-browser-bbde1438e9c31cc83d8c4835ea97a0eaeae4e192.zip | |
Close window when no tabs left
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/BrowserWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/BrowserWindow.cpp b/src/widgets/BrowserWindow.cpp index aad551d..f1b786b 100644 --- a/src/widgets/BrowserWindow.cpp +++ b/src/widgets/BrowserWindow.cpp @@ -2,6 +2,7 @@ #include <QStackedLayout> #include <QVBoxLayout> #include <QtCore> +#include <qmainwindow.h> #include "Configuration.hpp" #include "WindowMediator.hpp" @@ -10,7 +11,7 @@ #include "widgets/WebViewStack.hpp" BrowserWindow::BrowserWindow(const Configuration &configuration, const QStringList &urls) - : configuration(configuration) { + : QMainWindow(nullptr), configuration(configuration) { setCentralWidget(new QWidget()); // Root stacked layout |
