From 7a4e4b9e5e4697c3088a1a8c0ac1cc79b0f747b6 Mon Sep 17 00:00:00 2001 From: qydysky Date: Mon, 5 Oct 2020 00:18:35 +0800 Subject: [PATCH] =?utf8?q?Qt=E7=AA=97=E5=86=85=E8=BF=9B=E8=A1=8C=E9=80=89?= =?utf8?q?=E4=B8=AD=E6=97=B6=E6=9A=82=E5=81=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/qt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Reply/qt.go b/Reply/qt.go index 2c79d57..f610659 100644 --- a/Reply/qt.go +++ b/Reply/qt.go @@ -117,6 +117,7 @@ func new(pare *widgets.QWidget, layouts *widgets.QGridLayout) (t *widgets.QTextE func text(s string, pare *widgets.QTextEdit) { c := pare.TextCursor() + if c.HasSelection() {return}//用户选择,暂停 c.MovePosition(gui.QTextCursor__End, gui.QTextCursor__MoveAnchor, 1) c.InsertBlock() c.BeginEditBlock() -- 2.39.2