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:
@@ -163,18 +163,7 @@ void BaseTextDocument::checkPermissions()
|
||||
{
|
||||
if (!m_fileName.isEmpty()) {
|
||||
const QFileInfo fi(m_fileName);
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
// Check for permissions on NTFS file systems
|
||||
qt_ntfs_permission_lookup++;
|
||||
#endif
|
||||
|
||||
m_fileIsReadOnly = !fi.isWritable();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
qt_ntfs_permission_lookup--;
|
||||
#endif
|
||||
|
||||
} else {
|
||||
m_fileIsReadOnly = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user