GUI: Try to clarify --data-dir message
This commit is contained in:
parent
9d54ffd521
commit
549fec1628
|
@ -803,7 +803,7 @@ Settings MainWindow::GetCppcheckSettings()
|
||||||
windows = TryLoadLibrary(&result.library, "windows.cfg");
|
windows = TryLoadLibrary(&result.library, "windows.cfg");
|
||||||
|
|
||||||
if (!std || !posix || !windows)
|
if (!std || !posix || !windows)
|
||||||
QMessageBox::critical(this, tr("Error"), tr("Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.").arg(!std ? "std.cfg" : !posix ? "posix.cfg" : "windows.cfg"));
|
QMessageBox::critical(this, tr("Error"), tr("Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured.").arg(!std ? "std.cfg" : !posix ? "posix.cfg" : "windows.cfg"));
|
||||||
|
|
||||||
if (result.jobs <= 1) {
|
if (result.jobs <= 1) {
|
||||||
result.jobs = 1;
|
result.jobs = 1;
|
||||||
|
|
Loading…
Reference in New Issue