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
This commit is contained in:
Cédric Krier committed 2018-11-06 23:32:18 +01:00
1 parent a78bae0ed2
commit f73d551e72
1 file changed
+1 -1
+1 -1
View File
@@ -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));