fix syntax error

This commit is contained in:
Axel Kohlmeyer
2025-04-01 00:00:22 -04:00
parent b97611a919
commit d984ba9e32

View File

@ -85,8 +85,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();