forked from qt-creator/qt-creator
some work on the save-modified-files logic. We no longer rely
on QFileInfo to tell us that a file is not writable, but accept that the attempt to save a file might actually fail (:-) ). This solves the NT network domain issue without the insane slowness. The stuff needs more work. We do not have any UI for failing save operations when closing creator (other than it doesn't close). Bad.
This commit is contained in:
@@ -394,6 +394,7 @@ QList<IFile *> FileManager::saveModifiedFiles(const QList<IFile *> &files,
|
||||
if (!fileName.isEmpty()) {
|
||||
blockFileChange(file);
|
||||
ok = file->save(fileName);
|
||||
file->checkPermissions();
|
||||
unblockFileChange(file);
|
||||
}
|
||||
if (!ok)
|
||||
|
||||
Reference in New Issue
Block a user