diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-01-14 16:51:08 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-01-14 16:51:08 +0100 |
commit | fbcbddd4d0d956679dba52c91aa9467944b486b4 (patch) | |
tree | e05e6613ed1f33ed7892908e3422a456dcf40240 /application/MultiMC.cpp | |
parent | a6ef0059cced7f2736d0800c54c238d4d6511575 (diff) | |
download | MultiMC-fbcbddd4d0d956679dba52c91aa9467944b486b4.tar MultiMC-fbcbddd4d0d956679dba52c91aa9467944b486b4.tar.gz MultiMC-fbcbddd4d0d956679dba52c91aa9467944b486b4.tar.lz MultiMC-fbcbddd4d0d956679dba52c91aa9467944b486b4.tar.xz MultiMC-fbcbddd4d0d956679dba52c91aa9467944b486b4.zip |
GH-1665 put the macOS hint into all of the new fatal error messages.
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r-- | application/MultiMC.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index cec7eb37..54e4cdd3 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -82,6 +82,10 @@ static const QLatin1String liveCheckFile("live.check"); using namespace Commandline; +#define MACOS_HINT "If you are on macOS Sierra, you might have to move MultiMC.app to your /Applications or ~/Applications folder. "\ + "This usually fixes the problem and you can move the application elsewhere afterwards.\n" + + MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) { #if defined Q_OS_WIN32 @@ -204,6 +208,9 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) showFatalErrorMessage( "MultiMC data folder could not be created.", "MultiMC data folder could not be created.\n" +#if defined(Q_OS_MAC) + MACOS_HINT +#endif "Make sure you have the right permissions to the MultiMC data folder and any folder needed to access it.\n" "\n" "MultiMC cannot continue until you fix this problem." @@ -215,6 +222,9 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) showFatalErrorMessage( "MultiMC data folder could not be opened.", "MultiMC data folder could not be opened.\n" +#if defined(Q_OS_MAC) + MACOS_HINT +#endif "Make sure you have the right permissions to the MultiMC data folder.\n" "\n" "MultiMC cannot continue until you fix this problem." @@ -254,9 +264,10 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) showFatalErrorMessage( "MultiMC data folder is not writable!", "MultiMC couldn't create a log file - the MultiMC data folder is not writable.\n" - "If you are on macOS Sierra, you might have to move MultiMC.app to your /Applications or ~/Applications folder. " - "This usually fixes the problem and you can move the application elsewhere afterwards.\n" - "If you are using any other operating system, make sure you have write permissions to the MultiMC data folder.\n" +#if defined(Q_OS_MAC) + MACOS_HINT +#endif + "Make sure you have write permissions to the MultiMC data folder.\n" "\n" "MultiMC cannot continue until you fix this problem." ); |