don't emit changed() when saving failed

This commit is contained in:
Oswald Buddenhagen
2011-04-29 17:09:21 +02:00
parent f14f9d1fe1
commit 40c6653ff0

View File

@@ -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;
}