forked from qt-creator/qt-creator
CMakeProjectManager: Remote-ify CMakeFileCompletionAssist implementation
Change-Id: I18aa3d23244dd6475657f43bc18ce83298e278bf Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -13,8 +13,6 @@
|
||||
|
||||
#include <texteditor/codeassist/assistinterface.h>
|
||||
|
||||
#include <QFileInfo>
|
||||
|
||||
using namespace TextEditor;
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
@@ -39,7 +37,7 @@ IAssistProposal *CMakeFileCompletionAssist::performAsync()
|
||||
{
|
||||
Keywords kw;
|
||||
const Utils::FilePath &filePath = interface()->filePath();
|
||||
if (!filePath.isEmpty() && filePath.toFileInfo().isFile()) {
|
||||
if (!filePath.isEmpty() && filePath.isFile()) {
|
||||
Project *p = ProjectManager::projectForFile(filePath);
|
||||
if (p && p->activeTarget()) {
|
||||
CMakeTool *cmake = CMakeKitAspect::cmakeTool(p->activeTarget()->kit());
|
||||
|
Reference in New Issue
Block a user