From b8d3b3bc5fc54f8c6284b6b478f03d56f79efc90 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 19 Mar 2012 22:18:34 -0400 Subject: [PATCH] TWK-768: Enable xmlconsole by adding an xmlconsole arg to the settings for an account --- src/accounts/xmpp/sip/xmppsip.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/accounts/xmpp/sip/xmppsip.cpp b/src/accounts/xmpp/sip/xmppsip.cpp index 4c0e1792b..1e877c40e 100644 --- a/src/accounts/xmpp/sip/xmppsip.cpp +++ b/src/accounts/xmpp/sip/xmppsip.cpp @@ -954,8 +954,9 @@ void XmppSipPlugin::onNewAvatar( const QString& jid ) bool XmppSipPlugin::readXmlConsoleEnabled() { - QVariantHash configuration = m_account->configuration(); - return configuration.contains( "xmlconsole" ) && configuration[ "xmlconsole" ].toBool(); + // HACK we want to allow xmlconsole to be set manually in the onfig file, which means we can't hide it in a QVariantHash + const bool xmlConsole = TomahawkSettings::instance()->value( QString( "accounts/%1/xmlconsole" ).arg( account()->accountId() ), false ).toBool(); + return xmlConsole; }