Use Message functions for Tileset Editor

This commit is contained in:
GriffinR
2025-05-12 23:19:09 -04:00
parent 00c82f43d2
commit 018ad49ac4
4 changed files with 58 additions and 64 deletions

View File

@@ -3133,11 +3133,7 @@ bool MainWindow::closeProject() {
return true;
if (this->editor->project->hasUnsavedChanges()) {
QuestionMessage msgBox(QStringLiteral("The project has been modified, save changes?"), this);
msgBox.addButton(QMessageBox::Cancel);
msgBox.setDefaultButton(QMessageBox::Yes);
auto reply = msgBox.exec();
auto reply = SaveChangesMessage::show(QStringLiteral("The project"), this);
if (reply == QMessageBox::Yes) {
if (!save())
return false;