From d0d9b29285235ad34e8972c9b68440a5a8f5ae17 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 13 Aug 2024 16:22:16 +0300 Subject: [PATCH] fix active tab close --- src/app/browser/main.cpp | 2 +- src/app/browser/main/tab.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index 422f5209..f47e2fb8 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -45,7 +45,7 @@ void Main::tab_append() void Main::tab_close() { tab->close( - -1 // active + tab->get_current_page() // active ); }; diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index c335b2a7..d3f73ecb 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -64,7 +64,7 @@ void Tab::close_all() while (0 <= get_current_page()) { close( - -1 // active + -1 // last ); } } \ No newline at end of file