1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 04:07:55 +01:00
partially reverted 3db31d6828fd2b35e46509fbcdd26088c0704d25 :

I should not trim strings coming out of QLineEdit in
DialogData::saveAll() because it affects various attributes that might
need trailing space, such as log prefix (see #2676).  However trailing
spaces in the output file name are still trimmed in other places by
the changes done in 3db31d6828fd2b35e46509fbcdd26088c0704d25
This commit is contained in:
Vadim Kurland 2011-11-30 18:13:10 -08:00
parent 8e2fabca2c
commit 8eeef2186f

View File

@ -249,7 +249,7 @@ void DialogData::saveAll(FWObject *new_obj)
{
QLineEdit *edit=dynamic_cast<QLineEdit*>(i->w);
use_obj->setStr(i->attr.toLatin1().constData(),
edit->text().trimmed().toLatin1().constData() );
edit->text().toLatin1().constData() );
}
if (dynamic_cast<QTextEdit*>(i->w)!=NULL)
{