Skip to content

Commit

Permalink
Confirm revert action
Browse files Browse the repository at this point in the history
Make user confirm revert action.
  • Loading branch information
rodlie committed Oct 2, 2024
1 parent 0b47d69 commit ab3e4b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2029,6 +2029,11 @@ void MainWindow::importImageSequence()

void MainWindow::revert()
{
const int ask = QMessageBox::question(this,
tr("Confirm revert"),
tr("Are you sure you want to revert current project?"
"<p><b>Any changes will be lost.</b></p>"));
if (ask == QMessageBox::No) { return; }
const QString path = mDocument.fEvFile;
openFile(path);
}
Expand Down

0 comments on commit ab3e4b8

Please sign in to comment.