Skip to content

Commit

Permalink
Статусы файлов обновляются вовремя, время ожидания вставки токена уве…
Browse files Browse the repository at this point in the history
…личено до 120 секунд
  • Loading branch information
AlexeyAleksandrov committed Apr 20, 2022
1 parent 006540c commit 7a30aa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cryptopro_csp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);
Expand Down
5 changes: 5 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void MainWindow::setFileStatus(int i, fileStatus status)
if(itemFile == nullptr || itemStatus == nullptr)
{
qDebug() << "Невозможно установить статус файлу " << i;
QApplication::processEvents();
return;
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7a30aa5

Please sign in to comment.