fix syntax error

This commit is contained in:
Axel Kohlmeyer
2025-04-01 00:00:22 -04:00
parent e577528099
commit 6964156b6f

View File

@ -84,8 +84,7 @@ LammpsGui::LammpsGui(QWidget *parent, const QString &filename) :
current_file.clear();
current_dir = QDir(".").absolutePath();
// use $HOME if we get dropped to "/" like on macOS or the installation folder like on Windows
if ((current_dir == "/") || (current_dir.path().contains("AppData")))
current_dir = QDir::homePath();
if ((current_dir == "/") || (current_dir.contains("AppData"))) current_dir = QDir::homePath();
QDir::setCurrent(current_dir);
inspectList.clear();