[PC-BSD Commits] r17204 - pcbsd/current/src-qt4/pc-installgui
svn at pcbsd.org
svn at pcbsd.org
Tue Jun 5 09:29:01 PDT 2012
Author: kris
Date: 2012-06-05 16:29:01 +0000 (Tue, 05 Jun 2012)
New Revision: 17204
Modified:
pcbsd/current/src-qt4/pc-installgui/wizardFreeBSD.cpp
Log:
Fix how we suggest usernames in Server wizard as well
Modified: pcbsd/current/src-qt4/pc-installgui/wizardFreeBSD.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-installgui/wizardFreeBSD.cpp 2012-06-05 16:21:29 UTC (rev 17203)
+++ pcbsd/current/src-qt4/pc-installgui/wizardFreeBSD.cpp 2012-06-05 16:29:01 UTC (rev 17204)
@@ -116,8 +116,10 @@
if ( ! lineUsername->text().isEmpty() || lineName->text().isEmpty() )
return;
QString name;
- name = lineName->text().section(' ', 0, 0).toLower();
- name.truncate(1);
+ if ( lineName->text().indexOf(" ") != -1 ) {
+ name = lineName->text().section(' ', 0, 0).toLower();
+ name.truncate(1);
+ }
name = name + lineName->text().section(' ', -1, -1).toLower();
lineUsername->setText(name);
}
More information about the Commits
mailing list