Fix dialog hiding on row-activate signal in WinForm

The fixed issue appeared only on screens using WinForm, like the attachment list
opened from the toolbar. Screens used on a tab are not affected.

issue2266
review201002
(transplanted from e19c447ee16c52f540da1d77e5dd1630e94eef48)
This commit is contained in:
Udo Spallek
2011-12-15 16:03:37 +01:00
parent 9f6e5a87b4
commit bc11841001
@@ -288,12 +288,6 @@ class Screen(SignalEvent):
def default_row_activate(self):
from tryton.action import Action
from tryton.gui.main import Main
main = Main.get_main()
current_form = main.get_page()
if current_form:
for dialog in current_form.dialogs:
dialog.hide()
if (self.current_view.view_type == 'tree' and
self.current_view.widget_tree.keyword_open):