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); }