- resource.name = _name_line->text().toStdString();
- resource.hostname = _hostname_line->text().toStdString();
- resource.username = _username_line->text().toStdString();
- resource.applipath = _applipath_line->text().toStdString();
- resource.OS = _os_line->text().toStdString();
- resource.working_directory = _working_directory->text().toStdString();
+ resource.name = _name_line->text().trimmed().toStdString();
+ resource.hostname = _hostname_line->text().trimmed().toStdString();
+ resource.username = _username_line->text().trimmed().toStdString();
+ resource.applipath = _applipath_line->text().trimmed().toStdString();
+ resource.OS = _os_line->text().trimmed().toStdString();
+ resource.working_directory = _working_directory->text().trimmed().toStdString();