mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
Changed: Variables to debug infinite loops
This commit is contained in:
parent
6fb0305497
commit
6cb22ed2f6
2 changed files with 19 additions and 1 deletions
|
@ -43,7 +43,8 @@
|
|||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
COperationDialog::COperationDialog(QWidget *parent):QDialog(parent), m_aborting(false), m_operation(OperationNone)
|
||||
COperationDialog::COperationDialog(QWidget *parent):QDialog(parent), m_aborting(false), m_operation(OperationNone),
|
||||
m_operationStep(DisplayNoServerError), m_operationStepCounter(0)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
|
@ -134,6 +135,21 @@ void COperationDialog::processInstallNextStep()
|
|||
// long operations are done in a thread
|
||||
OperationStep step = config->getInstallNextStep();
|
||||
|
||||
if (step == m_operationStep)
|
||||
{
|
||||
++m_operationStepCounter;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_operationStep = step;
|
||||
m_operationStepCounter = 0;
|
||||
}
|
||||
|
||||
if (m_operationStepCounter > 10)
|
||||
{
|
||||
qDebug() << "possible infinite loop" << m_operationStep << m_operationStepCounter;
|
||||
}
|
||||
|
||||
switch(step)
|
||||
{
|
||||
case DownloadData:
|
||||
|
|
|
@ -147,6 +147,8 @@ protected:
|
|||
bool m_aborting;
|
||||
|
||||
OperationType m_operation;
|
||||
OperationStep m_operationStep;
|
||||
int m_operationStepCounter;
|
||||
SComponents m_addComponents;
|
||||
SComponents m_removeComponents;
|
||||
QString m_currentServerId;
|
||||
|
|
Loading…
Reference in a new issue