Editor: remove duplicated path is empty checks when saving

Change-Id: I1fdaacd44918a63e55bce9f15f3f80782ddcbe55
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2023-08-24 12:48:37 +02:00
parent 541719d443
commit 4526e1908c
11 changed files with 32 additions and 45 deletions

View File

@@ -721,7 +721,7 @@ bool DocumentManager::saveDocument(IDocument *document,
bool addWatcher = removeDocument(document); // So that our own IDocument gets no notification at all
QString errorString;
if (!document->save(&errorString, filePath, false)) {
if (!document->save(&errorString, savePath, false)) {
if (isReadOnly) {
QFile ofi(savePath.toString());
// Check whether the existing file is writable