Fix OxFSTreeView to properly list added files

This commit is contained in:
2017-08-19 12:31:53 -05:00
parent d8a3cd5dfb
commit 7a6174953d
9 changed files with 95 additions and 30 deletions

View File

@@ -17,8 +17,7 @@ const QString ImportTilesheetWizardPage::TILESHEET_NAME = "projectName";
const QString ImportTilesheetWizardPage::IMPORT_PATH = "projectPath";
const QString ImportTilesheetWizardPage::BPP = "bpp";
ImportTilesheetWizardPage::ImportTilesheetWizardPage(studio::PluginArgs args) {
m_project = args.project;
ImportTilesheetWizardPage::ImportTilesheetWizardPage(studio::PluginArgs args): m_project(args.project) {
addLineEdit(tr("&Tile Sheet Name:"), TILESHEET_NAME + "*", "", [this](QString) {
auto importPath = field(IMPORT_PATH).toString();
if (QFile(importPath).exists()) {

View File

@@ -18,7 +18,7 @@ class ImportTilesheetWizardPage: public studio::WizardFormPage {
static const QString TILESHEET_NAME;
static const QString IMPORT_PATH;
static const QString BPP;
studio::Project *m_project = nullptr;
studio::Project *&m_project;
public:
ImportTilesheetWizardPage(studio::PluginArgs args);