diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-06-27 09:26:19 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-06-27 08:00:28 +0000 |
commit | 06715441d695064e0548fa94d0cc3e325a3870a6 (patch) | |
tree | 19175c4d7f3c9d3ce21acb69d5f0bd4bd03e2a76 /src/plugins/python/pythonlanguageclient.cpp | |
parent | a26235dab98288cbcc13b6314ac2bff6ce9c604a (diff) | |
download | qt-creator-06715441d695064e0548fa94d0cc3e325a3870a6.tar.gz |
Fix "save as" with same file path, involving symbolic links
We close all existing documents for the new file path, before renaming
the current document, but may not close the current document itself. We
already tried to prevent that, but didn't take symbolic links into
account (which could also involve directories that are symbolic links).
Use the same logic for determining if the two files are "the same" as in
DocumentModel::documentForFilePath.
Fixes: QTCREATORBUG-27741
Change-Id: I3f3984f1f761328ee373b34870e03a9fce30c190
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
0 files changed, 0 insertions, 0 deletions