mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[Client] Route investigate() through the trail helper
This commit is contained in:
parent
d09f4c5356
commit
c836d8b10d
1 changed files with 7 additions and 0 deletions
|
|
@ -265,6 +265,13 @@ void TabAlts::investigate(const QString &userName)
|
|||
if (userName.isEmpty() || userName == currentUser) {
|
||||
return;
|
||||
}
|
||||
// Alt matches are symmetric, so revisiting an earlier account is a normal
|
||||
// double-click. Truncate there instead of pushing it again, so the trail
|
||||
// stays a single path.
|
||||
if (backStack.contains(userName)) {
|
||||
goToTrailEntry(userName);
|
||||
return;
|
||||
}
|
||||
if (!currentUser.isEmpty()) {
|
||||
backStack << currentUser;
|
||||
backButton->setEnabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue