forked from qt-creator/qt-creator
add errorString output argument to IFile::save()
this centralizes error reporting (in fact, in most cases it adds any in the first place). Task-number: QTCREATORBUG-1619
This commit is contained in:
@@ -173,9 +173,9 @@ ProjectFilesDocument::ProjectFilesDocument(Manager *manager)
|
||||
ProjectFilesDocument::~ProjectFilesDocument()
|
||||
{ }
|
||||
|
||||
bool ProjectFilesDocument::save(const QString &name)
|
||||
bool ProjectFilesDocument::save(QString *errorString, const QString &name)
|
||||
{
|
||||
if (! BaseTextDocument::save(name))
|
||||
if (! BaseTextDocument::save(errorString, name))
|
||||
return false;
|
||||
|
||||
m_manager->notifyChanged(name);
|
||||
|
||||
Reference in New Issue
Block a user