1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 01:24:11 +02:00

TWK-768: Enable xmlconsole by adding an xmlconsole arg to the settings for an account

This commit is contained in:
Leo Franchi
2012-03-19 22:18:34 -04:00
parent b18f926fa5
commit b8d3b3bc5f

View File

@@ -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;
}