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:
parent
9ad616a546
commit
b90c2c56d0
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,11 +8,7 @@ void ValidateExpressionThread::start(QString initialValue)
|
|||
{
|
||||
mStopThread = false;
|
||||
QThread::start();
|
||||
|
||||
if(!initialValue.isEmpty())
|
||||
{
|
||||
textChanged(initialValue);
|
||||
}
|
||||
textChanged(initialValue);
|
||||
}
|
||||
|
||||
void ValidateExpressionThread::stop()
|
||||
|
|
|
|||
Loading…
Reference in New Issue