QT 5.7 doesn't like comparison of naked chars - construct a QLatin1Char instead

This commit is contained in:
Phil Olynyk 2019-07-12 15:26:05 -04:00
parent 5bf71e2a55
commit b497b3ccbb

View File

@ -308,7 +308,7 @@ int main(int argc, char *argv[]) {
QString datadir ;
if ((i+1) < args.size()) {
datadir = args[++i];
if (datadir.length() < 2 || datadir.at(1) != ":") // Allow a Windows drive letter (but not UNC)
if (datadir.length() < 2 || datadir.at(1) != QLatin1Char(':')) // Allow a Windows drive letter (but not UNC)
datadir = homeDocs+datadir;
settings.setValue("Settings/AppData", datadir);
// force_data_dir = true;