From 45611ca1fd565be02653a7bfbc22f4e1e850e5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 17 Jul 2026 12:58:29 +0200 Subject: [PATCH] Compare tab against view index less or equals to 0 The view index may be -1 is the view is not yet displayed. Closes #14961 --- sao/src/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sao/src/tab.js b/sao/src/tab.js index e249d52667..64f32c3dce 100644 --- a/sao/src/tab.js +++ b/sao/src/tab.js @@ -827,7 +827,7 @@ } var compare = Sao.common.compare; return ( - (this.screen.view_index === 0) && + (this.screen.view_index <= 0) && (this.screen.model_name === attributes.model) && (this.attributes.res_id === attributes.res_id) && (compare(