mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-03 21:36:52 -05:00
Merge pull request #495 from GriffinRichards/keep-import-path
Preserve import/export path in file dialogs
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user