forked from qt-creator/qt-creator
Git: Fix opening repository log when commit editor is open
Opening a commit editor inside a submodule then executing Local Repository Log opens the log for the supermodule. Change-Id: I264925e0f23e2372a09a28e788174a747f5870a8 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
5189c990aa
commit
616ea2e5bb
@@ -237,9 +237,8 @@ void StateListener::slotStateChanged()
|
||||
state.currentFile.clear();
|
||||
} else {
|
||||
state.currentFile = currentDocument->filePath();
|
||||
if (state.currentFile.isEmpty()) {
|
||||
if (state.currentFile.isEmpty() || currentDocument->isTemporary())
|
||||
state.currentFile = VcsBasePlugin::source(currentDocument);
|
||||
}
|
||||
}
|
||||
QScopedPointer<QFileInfo> currentFileInfo; // Instantiate QFileInfo only once if required.
|
||||
if (!state.currentFile.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user