fix(editor): save button not working
This commit is contained in:
parent
b31e90ef68
commit
923c1c99b4
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
std::optional<std::string> path;
|
||||
if (!gDataModel->HasFile())
|
||||
path = openFileDialog("Openblocks Level (*.obl)", ".obl", QFileDialog::AcceptSave, QString::fromStdString("Save " + gDataModel->name));
|
||||
if (!path || path == "") return;
|
||||
if (!gDataModel->HasFile() && (!path || path == "")) return;
|
||||
|
||||
gDataModel->SaveToFile(path);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue