# HG changeset patch # User nemo # Date 1293471809 18000 # Node ID a9f9c96db60c995fa69166e5d2863fbd7775bdde # Parent a078324177a5bfa001231cdd4f1e37b76e404c5a Allow people to see my clever seed names if I set to something other than random seed hash. diff -r a078324177a5 -r a9f9c96db60c QTfrontend/gamecfgwidget.cpp --- a/QTfrontend/gamecfgwidget.cpp Sun Dec 26 23:38:02 2010 -0500 +++ b/QTfrontend/gamecfgwidget.cpp Mon Dec 27 12:43:29 2010 -0500 @@ -332,6 +332,9 @@ } if (param == "SEED") { pMapContainer->setSeed(value); + if (!QRegExp("\\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\}").exactMatch(value)) { + pMapContainer->seedEdit->setVisible(true); + } return; } if (param == "THEME") { diff -r a078324177a5 -r a9f9c96db60c QTfrontend/mapContainer.h --- a/QTfrontend/mapContainer.h Sun Dec 26 23:38:02 2010 -0500 +++ b/QTfrontend/mapContainer.h Mon Dec 27 12:43:29 2010 -0500 @@ -56,6 +56,7 @@ QByteArray getDrawnMapData(); DrawMapScene * getDrawMapScene(); void mapDrawingFinished(); + QLineEdit* seedEdit; public slots: void askForGeneratedPreview(); @@ -102,7 +103,6 @@ QListWidget* lwThemes; HWMap* pMap; QString m_seed; - QLineEdit* seedEdit; QPushButton* seedSet; QLabel* seedLabel; int hhLimit;