forked from qt-creator/qt-creator
Make document model static and add some document related methods
Change-Id: Ibcb863e67a2433529c9d2b6dec237f9d8b1d8d50 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -416,8 +416,8 @@ void Qt4ProjectManagerPlugin::updateBuildFileAction()
|
||||
bool enabled = false;
|
||||
|
||||
QString file;
|
||||
if (Core::IEditor *currentEditor = Core::EditorManager::currentEditor()) {
|
||||
file = currentEditor->document()->filePath();
|
||||
if (Core::IDocument *currentDocument= Core::EditorManager::currentDocument()) {
|
||||
file = currentDocument->filePath();
|
||||
ProjectExplorer::SessionManager *session = m_projectExplorer->session();
|
||||
ProjectExplorer::Node *node = session->nodeForFile(file);
|
||||
ProjectExplorer::Project *project = session->projectForFile(file);
|
||||
|
||||
Reference in New Issue
Block a user