equal
deleted
inserted
replaced
105 { |
105 { |
106 if (!cfgdir.mkdir(".hedgewars")) |
106 if (!cfgdir.mkdir(".hedgewars")) |
107 { |
107 { |
108 QMessageBox::critical(this, |
108 QMessageBox::critical(this, |
109 tr("Error"), |
109 tr("Error"), |
110 tr("Cannot create directory %s").arg("/.hedgewars"), |
110 tr("Cannot create directory %1").arg("/.hedgewars"), |
111 tr("Quit")); |
111 tr("Quit")); |
112 return ; |
112 return ; |
113 } |
113 } |
114 } |
114 } |
115 cfgdir.cd(".hedgewars"); |
115 cfgdir.cd(".hedgewars"); |
273 QFile settings(cfgdir.absolutePath() + "/options"); |
273 QFile settings(cfgdir.absolutePath() + "/options"); |
274 if (!settings.open(QIODevice::WriteOnly)) |
274 if (!settings.open(QIODevice::WriteOnly)) |
275 { |
275 { |
276 QMessageBox::critical(this, |
276 QMessageBox::critical(this, |
277 tr("Error"), |
277 tr("Error"), |
278 tr("Cannot save options to file %s").arg(settings.fileName()), |
278 tr("Cannot save options to file %1").arg(settings.fileName()), |
279 tr("Quit")); |
279 tr("Quit")); |
280 return ; |
280 return ; |
281 } |
281 } |
282 QTextStream stream(&settings); |
282 QTextStream stream(&settings); |
283 stream.setCodec("UTF-8"); |
283 stream.setCodec("UTF-8"); |