equal
deleted
inserted
replaced
156 #elif defined __APPLE__ |
156 #elif defined __APPLE__ |
157 int platform = 2; |
157 int platform = 2; |
158 #else |
158 #else |
159 int platform = 3; |
159 int platform = 3; |
160 #endif |
160 #endif |
161 if(Tips.length() == 0) |
161 if(!Tips.length()) |
162 { |
162 { |
163 DataManager & dataMgr = DataManager::instance(); |
163 DataManager & dataMgr = DataManager::instance(); |
164 |
164 |
165 // get locale |
165 // get locale |
166 QSettings settings(dataMgr.settingsFileName(), |
166 QSettings settings(dataMgr.settingsFileName(), |
207 //Tips << tr("Want to play Hedgewars any time? Grab the Mobile version for %1 and %2.", "Tips").arg("").arg(""); |
207 //Tips << tr("Want to play Hedgewars any time? Grab the Mobile version for %1 and %2.", "Tips").arg("").arg(""); |
208 // the ios version is located here: http://itunes.apple.com/us/app/hedgewars/id391234866 |
208 // the ios version is located here: http://itunes.apple.com/us/app/hedgewars/id391234866 |
209 |
209 |
210 file.close(); |
210 file.close(); |
211 } |
211 } |
212 return Tips[QTime(0, 0, 0).secsTo(QTime::currentTime()) % Tips.length()]; |
212 |
|
213 if(Tips.length()) |
|
214 return Tips[QTime(0, 0, 0).secsTo(QTime::currentTime()) % Tips.length()]; |
|
215 else |
|
216 return QString(); |
213 } |
217 } |
214 |
218 |
215 void PageMain::toggleNetworkChoice() |
219 void PageMain::toggleNetworkChoice() |
216 { |
220 { |
217 bool visible = BtnNetLocal->isVisible(); |
221 bool visible = BtnNetLocal->isVisible(); |