forked from qt-creator/qt-creator
LanguageClient: Silence soft assert
The reported path may be OS specific and can contain backslashes on Windows. Change-Id: I93d990c7fec84ae335d57a0671c12dcac3d2f939 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -577,7 +577,7 @@ void SymbolSupport::applyRename(const Utils::SearchResultItems &checkedItems,
|
||||
QSet<Utils::FilePath> affectedNonOpenFilePaths;
|
||||
QMap<Utils::FilePath, QList<TextEdit>> editsForDocuments;
|
||||
for (const Utils::SearchResultItem &item : checkedItems) {
|
||||
const auto filePath = Utils::FilePath::fromString(item.path().value(0));
|
||||
const auto filePath = Utils::FilePath::fromUserInput(item.path().value(0));
|
||||
if (!m_client->documentForFilePath(filePath))
|
||||
affectedNonOpenFilePaths << filePath;
|
||||
TextEdit edit(item.userData().toJsonObject());
|
||||
|
Reference in New Issue
Block a user