From f73d551e72a6aabc26a12c874381fc854639ae3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 6 Nov 2018 23:32:18 +0100 Subject: [PATCH] Fix typo for view type test in Sao.Window.Form The attribute of the view which contains the type is view_type. It was introduced by changeset e0a583fa4edc. issue7843 --- src/window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.js b/src/window.js index 5f60c6c324..c8ebfe9f30 100644 --- a/src/window.js +++ b/src/window.js @@ -222,7 +222,7 @@ dialog.body.append(this.info_bar.el); this.switch_prm.done(function() { - if (this.screen.current_view.type != view_type) { + if (this.screen.current_view.view_type != view_type) { this.destroy(); } else { title_prm.done(dialog.add_title.bind(dialog));