Don't ask if file was created without modifications.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-09 13:00:22 +03:00
parent da077a5b59
commit df11ffa981

View file

@ -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?"),