From 5e62069444319d2ca8db314d36ae34a08957b18b Mon Sep 17 00:00:00 2001 From: ZeldaZach Date: Sat, 28 Dec 2024 21:02:10 -0500 Subject: [PATCH] Fix Windows Crash due to nullptr --- cockatrice/src/dialogs/dlg_settings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/dialogs/dlg_settings.cpp b/cockatrice/src/dialogs/dlg_settings.cpp index d72ba992e..ded46e489 100644 --- a/cockatrice/src/dialogs/dlg_settings.cpp +++ b/cockatrice/src/dialogs/dlg_settings.cpp @@ -302,7 +302,9 @@ void GeneralSettingsPage::retranslateUi() updateNotificationCheckBox.setText(tr("Notify if a feature supported by the server is missing in my client")); newVersionOracleCheckBox.setText(tr("Automatically run Oracle when running a new version of Cockatrice")); showTipsOnStartup.setText(tr("Show tips on startup")); - resetAllPathsButton->setText(tr("Reset all paths")); + if (resetAllPathsButton) { + resetAllPathsButton->setText(tr("Reset all paths")); + } const auto &settings = SettingsCache::instance();