forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user