From 8892c642f19614e21b1c3a33e84dd8e11094f707 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Fri, 7 Feb 2025 12:39:58 -0500 Subject: [PATCH] Remove redundant reload warning --- src/mainwindow.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 84bd4190..bb158751 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -834,12 +834,7 @@ void MainWindow::on_action_Open_Project_triggered() } void MainWindow::on_action_Reload_Project_triggered() { - // TODO: when undo history is complete show only if has unsaved changes - WarningMessage msgBox(QStringLiteral("Reloading this project will discard any unsaved changes."), this); - msgBox.addButton(QMessageBox::Cancel); - msgBox.setDefaultButton(QMessageBox::Cancel); - if (msgBox.exec() == QMessageBox::Ok) - openProject(editor->project->root); + openProject(editor->project->root); } void MainWindow::on_action_Close_Project_triggered() {