X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=78f8d3831c1ef67d37245bb4b61cad025bba7586;hp=9bb37b4ff1587a85e38ed799f8529f4be7ad3523;hb=236dda81632fa792e788d45b0f4f31b973823f7f;hpb=5e0f2149927d3934c514c3dc7ca423b8784a5a90 diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 9bb37b4f..78f8d383 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -464,7 +464,6 @@ void MainWin::setupStatusBar() { connect(Client::signalProxy(), SIGNAL(lagUpdated(int)), this, SLOT(updateLagIndicator(int))); // SSL indicator - connect(Client::instance(), SIGNAL(securedConnection()), this, SLOT(securedConnection())); sslLabel->setPixmap(QPixmap()); statusBar()->addPermanentWidget(sslLabel); sslLabel->hide(); @@ -553,8 +552,11 @@ void MainWin::setConnectedState() { if(!Client::internalCore()) statusBar()->showMessage(tr("Connected to core.")); - if(sslLabel->width() == 0) + if(Client::signalProxy()->isSecure()) { + sslLabel->setPixmap(SmallIcon("security-high")); + } else { sslLabel->setPixmap(SmallIcon("security-low")); + } sslLabel->setVisible(!Client::internalCore()); coreLagLabel->setVisible(!Client::internalCore()); @@ -582,12 +584,6 @@ void MainWin::updateLagIndicator(int lag) { coreLagLabel->setText(text); } - -void MainWin::securedConnection() { - // todo: make status bar entry - sslLabel->setPixmap(SmallIcon("security-high")); -} - void MainWin::disconnectedFromCore() { // save core specific layout and remove bufferviews; saveLayout();