+ fixes #0001512: After trying to set a bad value, the pad editor does not show

This commit is contained in:
wmayer 2014-04-23 17:10:28 +02:00
parent dd9f4dffe8
commit a31ce8e386

View File

@ -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)