mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
QT 5.7 doesn't like comparison of naked chars - construct a QLatin1Char instead
This commit is contained in:
parent
5bf71e2a55
commit
b497b3ccbb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user