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