From df11ffa9816756255200da4a44db28755a005689 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 9 Sep 2015 13:00:22 +0300 Subject: [PATCH] Don't ask if file was created without modifications. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index b6b167f4f..50dcf6e35 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1593,6 +1593,11 @@ bool TMainWindow::MaybeSave() { if (this->isWindowModified()) { + if (curFile.isEmpty() && ui->tableWidget->rowCount() == 0) + { + return true;// Don't ask if file was created without modifications. + } + QMessageBox::StandardButton ret; ret = QMessageBox::warning(this, tr("Unsaved changes"), tr("Measurements have been modified.\n" "Do you want to save your changes?"),