Commit 40c6653f authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

don't emit changed() when saving failed

parent f14f9d1f
......@@ -72,6 +72,8 @@ void SubmitEditorFile::setModified(bool modified)
bool SubmitEditorFile::save(QString *errorString, const QString &fileName)
{
emit saveMe(errorString, fileName);
if (!errorString->isEmpty())
return false;
emit changed();
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment