Browse Source

Avoid future time for Rebuild action

cl-refactor
yann300 10 years ago
parent
commit
13d99b71c7
  1. 3
      mix/qml/BlockChain.qml

3
mix/qml/BlockChain.qml

@ -217,6 +217,8 @@ ColumnLayout {
text: qsTr("Rebuild") text: qsTr("Rebuild")
onClicked: onClicked:
{ {
if (ensureNotFuturetime.running)
return;
for (var j = 0; j < model.blocks.length; j++) for (var j = 0; j < model.blocks.length; j++)
{ {
for (var k = 0; k < model.blocks[j].transactions.length; k++) for (var k = 0; k < model.blocks[j].transactions.length; k++)
@ -233,6 +235,7 @@ ColumnLayout {
} }
} }
} }
ensureNotFuturetime.start()
clientModel.setupScenario(model); clientModel.setupScenario(model);
} }

Loading…
Cancel
Save