From 7a30aa5850d3ba6d10984eb2205cbb362b5e503d Mon Sep 17 00:00:00 2001 From: AlexeyAleksandrov Date: Wed, 20 Apr 2022 12:59:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B0=D1=82=D1=83=D1=81=D1=8B=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D1=8E=D1=82=D1=81=D1=8F=20=D0=B2=D0=BE=D0=B2?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D1=8F,=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=B2=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=B2=D0=BA=D0=B8=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=83=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=B4=D0=BE=20120=20=D1=81=D0=B5=D0=BA=D1=83=D0=BD=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptopro_csp.cpp | 2 +- mainwindow.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cryptopro_csp.cpp b/cryptopro_csp.cpp index 02dcec4..2c8d630 100644 --- a/cryptopro_csp.cpp +++ b/cryptopro_csp.cpp @@ -398,7 +398,7 @@ bool CryptoPRO_CSP::s_csptest::createSign(QString file, CryptoPRO_CSP::CryptoSig params.insert(1, csptest_bat_file.fileName()); csptest_bat.start("gnome-terminal", params); // запускаем батник #endif - if (!csptest_bat.waitForStarted()) + if (!csptest_bat.waitForStarted(120000)) { qDebug() << "The process didnt start" << csptest_bat.error(); //log.addToLog(&"The process didnt start " [ csptest_bat.error()]); diff --git a/mainwindow.cpp b/mainwindow.cpp index dc4e98e..064f110 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -113,6 +113,7 @@ void MainWindow::setFileStatus(int i, fileStatus status) if(itemFile == nullptr || itemStatus == nullptr) { qDebug() << "Невозможно установить статус файлу " << i; + QApplication::processEvents(); return; } @@ -153,6 +154,10 @@ void MainWindow::setFileStatus(int i, fileStatus status) itemFile->setBackground(color); itemStatus->setBackground(color); itemStatus->setText(text); + + QApplication::processEvents(); + QApplication::processEvents(); + QApplication::processEvents(); } QString MainWindow::getFileNameInPDFFormat(QString fileName)