diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-05 20:46:53 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-05 20:46:53 +0530 |
| commit | b77a6444f94ce8d05962af9039c31851e224be5c (patch) | |
| tree | 5a02fd175a8dbf706e509b4d6e7a8580b3944f2e /src/WindowActionRouter.hpp | |
| parent | 26504893e75fb33e9d3f01abdebf1d61f362f1b1 (diff) | |
| download | null-browser-b77a6444f94ce8d05962af9039c31851e224be5c.tar.gz null-browser-b77a6444f94ce8d05962af9039c31851e224be5c.zip | |
Fix new window handling + webviewstack tests
Diffstat (limited to '')
| -rw-r--r-- | src/WindowActionRouter.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/WindowActionRouter.hpp b/src/WindowActionRouter.hpp index b72734c..c72aaaf 100644 --- a/src/WindowActionRouter.hpp +++ b/src/WindowActionRouter.hpp @@ -9,12 +9,12 @@ #include "widgets/BrowserWindow.hpp" #include "widgets/WebViewStack.hpp" -#define WITH_WEBVIEW_WINDOW(WEBVIEW_ID, IDENT, BLOCK) \ - for (auto &win_match : window_map) { \ - auto *IDENT = win_match.second; \ - if (IDENT->mediator()->has_webview(WEBVIEW_ID)) { \ - BLOCK; \ - } \ +#define WITH_WEBVIEW_WINDOW(WEBVIEW_ID, IDENT, BLOCK) \ + for (auto &win_match : window_map) { \ + auto *IDENT = win_match.second; \ + if (IDENT->mediator()->has_webview(WEBVIEW_ID)) { \ + BLOCK; \ + } \ } class WindowActionRouter : public QWidget { @@ -40,8 +40,7 @@ public: protected: WindowActionRouter() = default; - void add_keymap(const QString &mode_string, const QString &keyseq, - std::function<void()> action); + void add_keymap(const QString &mode_string, const QString &keyseq, std::function<void()> action); signals: void new_window_requested(const QUrl &url); |
