From 6a9ebdd9fbd8bff9442cdfb1857e86430e56c827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=BA=D1=83=D1=80=D0=BD=D1=91=D0=B2?= Date: Mon, 4 Jan 2021 22:21:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=87=D0=B8=D1=81=D1=82=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=BA=D1=80=D1=8B?= =?UTF-8?q?=D1=82=D0=B8=D0=B8.=20=D0=A3=D0=BC=D0=B5=D0=BD=D1=8C=D1=88?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20?= =?UTF-8?q?=D0=BE=D0=B6=D0=B8=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D1=88=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qtsgraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qtsgraph.cpp b/qtsgraph.cpp index 5d8bfd2..aa27a3e 100644 --- a/qtsgraph.cpp +++ b/qtsgraph.cpp @@ -118,7 +118,7 @@ int QTSGraph::ReadKey() if(!EventKeyPressed || IDPressedKey == -1) { while(!KeyPressed() && this->isVisible()) - Delay(100); + Delay(1); } int t = IDPressedKey; IDPressedKey = -1; @@ -217,5 +217,5 @@ void QTSGraph::closeEvent(QCloseEvent *event) //Закрытие окна delete ResetTimer; delete StartTimer; - delete this; + exit(0); }