From 46f28f92b6ce712ff3e819c49cc74ea54530fb6f Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Mon, 27 Jul 2015 16:19:19 +0200 Subject: [PATCH] Changed app title when logged in As seen in this image, you cant see where you are logged in. How it looks now: --- cockatrice/src/window_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/window_main.cpp b/cockatrice/src/window_main.cpp index 3c308d89..04e3b4e2 100644 --- a/cockatrice/src/window_main.cpp +++ b/cockatrice/src/window_main.cpp @@ -440,7 +440,7 @@ void MainWindow::setClientStatusTitle() case StatusRegistering: setWindowTitle(appName + " - " + tr("Registering to %1 as %2...").arg(client->peerName()).arg(client->getUserName())); break; case StatusDisconnected: setWindowTitle(appName + " - " + tr("Disconnected")); break; case StatusLoggingIn: setWindowTitle(appName + " - " + tr("Connected, logging in at %1").arg(client->peerName())); break; - case StatusLoggedIn: setWindowTitle(appName + " - " + tr("Logged in as %1 at %2").arg(client->getUserName()).arg(client->peerName())); break; + case StatusLoggedIn: setWindowTitle(client->getUserName() + "@" + client->peerName()); break; default: setWindowTitle(appName); } }