diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index a65cba46..cbc368cf 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,14 +1,14 @@ System Information: - + - -________________________________________________________________________________________ + +__________________________________________________________________________________________ - + - + diff --git a/cockatrice/src/dlg_viewlog.cpp b/cockatrice/src/dlg_viewlog.cpp index 91a07787..a10d6212 100644 --- a/cockatrice/src/dlg_viewlog.cpp +++ b/cockatrice/src/dlg_viewlog.cpp @@ -16,7 +16,7 @@ DlgViewLog::DlgViewLog(QWidget *parent) : QDialog(parent) coClearLog = new QCheckBox; coClearLog->setText(tr("Clear log when closing")); - coClearLog->setChecked(settingsCache->servers().getClearDebugLogStatus(true)); + coClearLog->setChecked(settingsCache->servers().getClearDebugLogStatus(false)); connect(coClearLog, SIGNAL(toggled(bool)), this, SLOT(actCheckBoxChanged(bool))); mainLayout->addWidget(coClearLog); @@ -50,8 +50,8 @@ void DlgViewLog::closeEvent(QCloseEvent * /* event */) { if (coClearLog->isChecked()) { logArea->clear(); - } - logArea->appendPlainText(Logger::getInstance().getClientVersion()); - logArea->appendPlainText(Logger::getInstance().getSystemArchitecture()); + logArea->appendPlainText(Logger::getInstance().getClientVersion()); + logArea->appendPlainText(Logger::getInstance().getSystemArchitecture()); + } } diff --git a/cockatrice/src/logger.cpp b/cockatrice/src/logger.cpp index 1a575cbd..35168bd9 100644 --- a/cockatrice/src/logger.cpp +++ b/cockatrice/src/logger.cpp @@ -16,6 +16,7 @@ Logger::Logger() : logToFileEnabled(false) logBuffer.append(getClientVersion()); logBuffer.append(getSystemArchitecture()); logBuffer.append(getSystemLocale()); + logBuffer.append(QString("-").repeated(75)); std::cerr << getClientVersion().toStdString() << std::endl; std::cerr << getSystemArchitecture().toStdString() << std::endl; } @@ -91,11 +92,12 @@ QString Logger::getSystemArchitecture() QString result; if (!getClientOperatingSystem().isEmpty()) { - result.append(tr("Client Operating System") + ": " + getClientOperatingSystem() + "\n"); + // We don't want translatable strings in the 'Debug Log' for easier troubleshooting + result.append(QString("Client Operating System: ") + getClientOperatingSystem() + "\n"); } - result.append(tr("Build Architecture") + ": " + QString::fromStdString(BUILD_ARCHITECTURE) + "\n"); - result.append(tr("Qt Version") + ": " + QT_VERSION_STR); + result.append(QString("Build Architecture: ") + QString::fromStdString(BUILD_ARCHITECTURE) + "\n"); + result.append(QString("Qt Version: ") + QT_VERSION_STR); return result; } @@ -112,6 +114,6 @@ QString Logger::getClientOperatingSystem() QString Logger::getSystemLocale() { QString result; - result.append(tr("System Locale") + ": " + QLocale().name()); + result.append(QString("System Locale: ") + QLocale().name()); return result; }