Merge pull request #495 from GriffinRichards/keep-import-path

Preserve import/export path in file dialogs
This commit is contained in:
t
2023-01-16 14:19:31 -05:00
committed by GitHub
8 changed files with 33 additions and 16 deletions

View File

@@ -91,6 +91,7 @@ void Project::initSignals() {
void Project::set_root(QString dir) {
this->root = dir;
this->importExportPath = dir;
this->parser.set_root(dir);
}
@@ -2552,3 +2553,8 @@ int Project::getMaxObjectEvents()
{
return Project::max_object_events;
}
void Project::setImportExportPath(QString filename)
{
this->importExportPath = QFileInfo(filename).absolutePath();
}