1
0
Fork 0

GUI: resolved issue #364 (both discussed issues are resolved even) + solved a similar issue in the calculator dialog (open -> type value -> close -> open gets the wrong result)

This commit is contained in:
Mr. eXoDia 2015-08-14 00:12:57 +02:00
parent 9ad616a546
commit b90c2c56d0
3 changed files with 3 additions and 6 deletions

View File

@ -27,7 +27,7 @@ CalculatorDialog::~CalculatorDialog()
void CalculatorDialog::showEvent(QShowEvent* event)
{
Q_UNUSED(event);
mValidateThread->start();
mValidateThread->start(ui->txtExpression->text());
}
void CalculatorDialog::hideEvent(QHideEvent* event)

View File

@ -133,6 +133,7 @@ void GotoDialog::on_buttonOk_clicked()
QString expression = ui->editExpression->text();
ui->editExpression->addLineToHistory(expression);
ui->editExpression->setText("");
expressionChanged(false, false, 0);
expressionText = expression;
}

View File

@ -8,11 +8,7 @@ void ValidateExpressionThread::start(QString initialValue)
{
mStopThread = false;
QThread::start();
if(!initialValue.isEmpty())
{
textChanged(initialValue);
}
textChanged(initialValue);
}
void ValidateExpressionThread::stop()