From 907e553a4a662a3d4bea030fab0babdc20f4eef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Sat, 15 Dec 2018 21:47:12 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@472 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/widgets/qcodeedit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qad/widgets/qcodeedit.cpp b/qad/widgets/qcodeedit.cpp index 551e79b..a88079e 100644 --- a/qad/widgets/qcodeedit.cpp +++ b/qad/widgets/qcodeedit.cpp @@ -157,6 +157,8 @@ void QCodeEdit::setDocument(QTextDocument * doc) { document()->setProperty("_cursor", QVariant::fromValue(textCursor())); document()->setProperty("_vpos", textEdit()->verticalScrollBar()->value()); } + ui->textCode->setEnabled(doc); + ui->textLines->setEnabled(doc); documentUnset(); if (!doc) { ui->textCode->setDocument(0);