# HG changeset patch # User Andrey Skvortsov # Date 1461594184 -10800 # Node ID d3f97b72c02a294e3260cfdbb73b1623cd57de00 # Parent 3a238c0c5993e1892809e9aee1bda32688e3001e fix issue that if functional block is dragged from project panel into ST text editor and in dialog 'Please enter a block name' button 'cancel' is pressed, despite of cancel text about drag'n'dropped type is pasted in ST program. diff -r 3a238c0c5993 -r d3f97b72c02a editors/TextViewer.py --- a/editors/TextViewer.py Fri Apr 22 21:26:31 2016 +0300 +++ b/editors/TextViewer.py Mon Apr 25 17:23:04 2016 +0300 @@ -262,6 +262,7 @@ if dialog.ShowModal() == wx.ID_OK: blockname = dialog.GetValue() else: + event.SetDragText("") return dialog.Destroy() if blockname.upper() in [name.upper() for name in self.Controler.GetProjectPouNames(self.Debug)]: