- 
    Bug 
- 
    Resolution: Done
- 
    P3: Somewhat important 
- 
    Qt Creator 4.5.1
- 
    Ubuntu 16.04 LTS 64 bit
 Qt 5.10.0
- 
        53b2df46e0100488d2baeb7d94eef07a1c8a069c
- Start Creator.
- Open a file from a git repository with a Gerrit remote.
- Open the dialog from "Tools" -> "Git" -> "Remote Repository" -> "Gerrit..."
 In the top left corner, the dialog displays the repository of the file.
- Close the dialog.
- Open a file from a different git repository with a Gerrit remote.
- Open the dialog from "Tools" -> "Git" -> "Remote Repository" -> "Gerrit..." again.
 In the top left corner, the dialog still displays the repository of the first file. Checkouts and cherry-picks will be done in the wrong directory.
- Open the dialog from "Tools" -> "Git" -> "Local Repository" -> "Branches..."
 This dialog displays the correct repository.
 To change the repository used by the Gerrit dialog, you'll need to restart Creator.
In any situation, all git-related dialogs should use the same repository. This should be chosen depending on the currently open projects and files.
| For Gerrit Dashboard: QTCREATORBUG-19562 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 215929,2 | Gerrit: Set current repository every time the dialog is shown | 4.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |