[PC-BSD Commits] r5139 - pcbsd/trunk/SysInstaller

svn at pcbsd.org svn at pcbsd.org
Tue Nov 24 12:27:59 PST 2009


Author: kris
Date: 2009-11-24 12:27:59 -0800 (Tue, 24 Nov 2009)
New Revision: 5139

Modified:
   pcbsd/trunk/SysInstaller/sysinstaller.cpp
Log:

Default our timezone selection to America/New_York



Modified: pcbsd/trunk/SysInstaller/sysinstaller.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/sysinstaller.cpp	2009-11-24 20:27:39 UTC (rev 5138)
+++ pcbsd/trunk/SysInstaller/sysinstaller.cpp	2009-11-24 20:27:59 UTC (rev 5139)
@@ -100,6 +100,14 @@
     // Load the timezones
     comboBoxTimezone->clear();
     comboBoxTimezone->addItems(Scripts::Backend::timezones());
+    // Set America/New_York to default
+    for ( int i = 0; i <= comboBoxTimezone->count(); ++i)
+    {
+       if ( comboBoxTimezone->itemText(i).indexOf("America/New_York") != -1 ) {
+         comboBoxTimezone->setCurrentIndex(i);
+         break;
+       }
+    }
 
     // Connect buttons / slots
     connect(listKbLayouts, SIGNAL(currentRowChanged(int)), this, SLOT(slotCurrentKbLayoutChanged(int)));



More information about the Commits mailing list