diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-08-19 19:45:25 +0200 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-08-19 19:45:25 +0200 |
commit | 799e4c4ab7d55d6ff70488b720b33cd4f955eddf (patch) | |
tree | 1f25126b7c7fe4679fa427263bc8ed0d0c8ad14a | |
parent | 67b46c64200842f0de995854e5f11b9add7a013f (diff) |
fix code path error detected by clang-tidy.
-rw-r--r-- | rose.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -204,6 +204,7 @@ GtkWidget* handle_create_new_tab(WebKitWebView* self, } else { webkit_web_view_run_javascript(notebook_get_webview(notebook), "alert('Too many tabs, not opening a new one')", NULL, NULL, NULL); + return NULL; } /* WebKitGTK documentation recommends returning the new webview. * I imagine that this might allow e.g., to go back in a new tab |