mirror of
https://github.com/leozide/leocad
synced 2025-01-29 20:34:50 +01:00
Fixed modified dialog showing after a file is saved.
This commit is contained in:
parent
55a0639c78
commit
4293829386
1 changed files with 2 additions and 1 deletions
|
@ -460,11 +460,12 @@ bool Project::Load(const QString& FileName)
|
|||
|
||||
bool Project::Save(const QString& FileName)
|
||||
{
|
||||
SetFileName(QString());
|
||||
|
||||
QFile File(FileName);
|
||||
|
||||
if (!File.open(QIODevice::WriteOnly))
|
||||
{
|
||||
SetFileName(QString());
|
||||
QMessageBox::warning(gMainWindow, tr("Error"), tr("Error writing to file '%1':\n%2").arg(FileName, File.errorString()));
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue