remove some unneeded FilePath::toFileInfo

Change-Id: I6e6e5906d8c2ca972e98733d06d40fddc68865de
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-06-03 12:27:40 +02:00
parent 27a3bf3ae6
commit 5544fd35c4
2 changed files with 3 additions and 3 deletions

View File

@@ -704,7 +704,7 @@ void TextDocument::setFilePath(const Utils::FilePath &newName)
{
if (newName == filePath())
return;
IDocument::setFilePath(Utils::FilePath::fromUserInput(newName.toFileInfo().absoluteFilePath()));
IDocument::setFilePath(newName.absoluteFilePath());
}
bool TextDocument::isModified() const