Don't ask if file was created without modifications.
--HG-- branch : develop
This commit is contained in:
parent
da077a5b59
commit
df11ffa981
|
@ -1593,6 +1593,11 @@ bool TMainWindow::MaybeSave()
|
||||||
{
|
{
|
||||||
if (this->isWindowModified())
|
if (this->isWindowModified())
|
||||||
{
|
{
|
||||||
|
if (curFile.isEmpty() && ui->tableWidget->rowCount() == 0)
|
||||||
|
{
|
||||||
|
return true;// Don't ask if file was created without modifications.
|
||||||
|
}
|
||||||
|
|
||||||
QMessageBox::StandardButton ret;
|
QMessageBox::StandardButton ret;
|
||||||
ret = QMessageBox::warning(this, tr("Unsaved changes"), tr("Measurements have been modified.\n"
|
ret = QMessageBox::warning(this, tr("Unsaved changes"), tr("Measurements have been modified.\n"
|
||||||
"Do you want to save your changes?"),
|
"Do you want to save your changes?"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user