aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2023-08-24 12:48:37 +0200
committerDavid Schulz <david.schulz@qt.io>2023-08-28 13:01:40 +0000
commit4526e1908c0951f01e502392f5c3efc176b7f562 (patch)
tree1aa01c7cb5fd6735401c8e2b86fcf6fdd846f8b8 /src/plugins/modeleditor
parent541719d443a9bb6f9dfc6a1d3f8dc8f753952a86 (diff)
Editor: remove duplicated path is empty checks when saving
Change-Id: I1fdaacd44918a63e55bce9f15f3f80782ddcbe55 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/modeleditor')
-rw-r--r--src/plugins/modeleditor/modeldocument.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/modeleditor/modeldocument.cpp b/src/plugins/modeleditor/modeldocument.cpp
index dc34acacf70..a1c271539c6 100644
--- a/src/plugins/modeleditor/modeldocument.cpp
+++ b/src/plugins/modeleditor/modeldocument.cpp
@@ -62,8 +62,7 @@ bool ModelDocument::saveImpl(QString *errorString, const Utils::FilePath &filePa
return false;
}
- const Utils::FilePath actualName = filePath.isEmpty() ? this->filePath() : filePath;
- d->documentController->projectController()->setFileName(actualName.toString());
+ d->documentController->projectController()->setFileName(filePath.toString());
try {
d->documentController->projectController()->save();
} catch (const qmt::Exception &ex) {