+ fixes #0001512: After trying to set a bad value, the pad editor does not show
This commit is contained in:
parent
dd9f4dffe8
commit
a31ce8e386
|
@ -247,9 +247,9 @@ std::vector<QString> InputField::getHistory(void)
|
|||
|
||||
void InputField::setToLastUsedValue(void)
|
||||
{
|
||||
std::vector<QString> hist = getHistory();
|
||||
if(hist.size()>0)
|
||||
this->setValue(Base::Quantity::parse(hist[0]));
|
||||
std::vector<QString> hist = getHistory();
|
||||
if(!hist.empty())
|
||||
this->setText(hist[0]);
|
||||
}
|
||||
|
||||
void InputField::pushToSavedValues(const QString &valueq)
|
||||
|
|
Loading…
Reference in New Issue
Block a user