[PC-BSD Commits] r12077 - pcbsd/current/src-qt4/pc-sysinstaller
svn at pcbsd.org
svn at pcbsd.org
Wed Aug 10 11:26:29 PDT 2011
Author: kris
Date: 2011-08-10 11:26:29 -0700 (Wed, 10 Aug 2011)
New Revision: 12077
Modified:
pcbsd/current/src-qt4/pc-sysinstaller/sysinstaller.cpp
Log:
Fixed a bug saving time zone when using ones without a ":" followed by comment
Modified: pcbsd/current/src-qt4/pc-sysinstaller/sysinstaller.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sysinstaller.cpp 2011-08-10 17:49:08 UTC (rev 12076)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sysinstaller.cpp 2011-08-10 18:26:29 UTC (rev 12077)
@@ -649,7 +649,9 @@
// Save the timezone
tmp = comboBoxTimezone->currentText();
- tmp.truncate(tmp.indexOf(":"));
+ // remove the comment if need be
+ if ( tmp.indexOf(":") != -1 )
+ tmp.truncate(tmp.indexOf(":"));
tmpList << "";
tmpList << "# Timezone";
tmpList << "timeZone=" + tmp ;
More information about the Commits
mailing list