VCS: Fix resolving active directory for temp editors

Amends c666c93882.

Change-Id: Ib7aeb9616d3d527f829ece2a39eb5ddf77f9431e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Orgad Shaneh
2022-10-26 22:53:40 +03:00
committed by Orgad Shaneh
parent 5b7729a21a
commit e003a02721

View File

@@ -263,8 +263,8 @@ void StateListener::slotStateChanged()
}
if (state.currentFile.isDir()) {
state.currentFile.clear();
state.currentFileDirectory = state.currentFile.absoluteFilePath();
state.currentFile.clear();
} else {
state.currentFileDirectory = state.currentFile.absolutePath();
state.currentFileName = state.currentFile.fileName();