| 171 | } |
| 172 | |
| 173 | static void ErrorSettingsWrite(const bilingual_str& error, const std::vector<std::string>& details) |
| 174 | { |
| 175 | QMessageBox messagebox(QMessageBox::Critical, CLIENT_NAME, QString::fromStdString(strprintf("%s.", error.translated)), QMessageBox::Ok); |
| 176 | /*: Explanatory text shown on startup when the settings file could not be written. |
| 177 | Prompts user to check that we have the ability to write to the file. |
| 178 | Explains that the user has the option of running without a settings file.*/ |
| 179 | messagebox.setInformativeText(QObject::tr("A fatal error occurred. Check that settings file is writable, or try running with -nosettings.")); |
| 180 | messagebox.setDetailedText(QString::fromStdString(MakeUnorderedList(details))); |
| 181 | messagebox.setTextFormat(Qt::PlainText); |
| 182 | messagebox.setDefaultButton(QMessageBox::Ok); |
| 183 | messagebox.exec(); |
| 184 | } |
| 185 | |
| 186 | /* qDebug() message handler --> debug.log */ |
| 187 | void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg) |
no test coverage detected