From a6ef0059cced7f2736d0800c54c238d4d6511575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 14 Jan 2017 15:47:58 +0100 Subject: GH-1665 attempt at workaround for MultiMC not starting on macOS Sierra This tries to detect the issue and instructs the user to fix it by moving the application to /Applications or ~/Applications. In addition, several other previously poorly handled fatal errors now show an error dialog. --- application/MultiMC.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application/MultiMC.h') diff --git a/application/MultiMC.h b/application/MultiMC.h index 846bb152..7600a120 100644 --- a/application/MultiMC.h +++ b/application/MultiMC.h @@ -50,6 +50,8 @@ public: enum Status { StartingUp, + UnwritableLog, + FailedShowError, Failed, Succeeded, Initialized @@ -172,7 +174,7 @@ private slots: void setupWizardFinished(int status); private: - void initLogger(); + bool initLogger(); void shutdownLogger(); void initIcons(); void initThemes(); @@ -186,6 +188,9 @@ private: void shutdownAnalytics(); void performMainStartupAction(); + // sets the fatal error message and m_status to Failed. + void showFatalErrorMessage(const QString & title, const QString & content); + private: QDateTime startTime; -- cgit v1.2.3