OSDN Git Service

VCS: Get current file from the editor
authorTobias Hunger <tobias.hunger@nokia.com>
Thu, 6 Oct 2011 17:36:26 +0000 (19:36 +0200)
committerTobias Hunger <tobias.hunger@nokia.com>
Mon, 10 Oct 2011 13:39:50 +0000 (15:39 +0200)
commitbdf486fca1b294d6725e6fd580d7fb6b95aa7fbb
tree7ed917b22eed14e1a32396a2bac72d4d7788c4fc
parentd6fcc1d6c4bf9fb1884eb2408f153f0716b689bf
VCS: Get current file from the editor

Get the current file from the editor, not the filemanager. The later
does not get updated for temporary files like those created by git
blame, leaving the file-based actions in the VCSes enabled when viewing
those temporary files, triggering actions on the last real file that
was visible.

Task-number: QTCREATORBUG-6250
Change-Id: I5c2d3c62805f69bc8e103f0776cd6796332f606c
Reviewed-on: http://codereview.qt-project.org/6175
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
src/plugins/vcsbase/vcsbaseplugin.cpp