@@ -280,14 +280,13 @@ void MainWindow::closeEvent(QCloseEvent
// save snapshots
if (!snapshotMan.isAllSaved())
{
auto clickedButton = QMessageBox::warning(
this, "Closing SerialPlot",
"There are un-saved snapshots. If you close you will loose the data.",
QMessageBox::Discard | QMessageBox::Discard,
QMessageBox::Cancel);
QMessageBox::Discard, QMessageBox::Cancel);
if (clickedButton == QMessageBox::Cancel)
event->ignore();
return;
}
Status change: