mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
Don't create network submenu for jabber if no account is set
This commit is contained in:
@@ -8,9 +8,12 @@
|
|||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
|
||||||
JabberPlugin::JabberPlugin()
|
JabberPlugin::JabberPlugin()
|
||||||
: p( 0 )
|
: p( 0 ),
|
||||||
|
m_menu ( 0 )
|
||||||
{
|
{
|
||||||
m_menu = new QMenu(QString("Jabber (").append(accountName()).append(")"));
|
if( !accountName().isEmpty() )
|
||||||
|
m_menu = new QMenu(QString("Jabber (").append(accountName()).append(")"));
|
||||||
|
|
||||||
m_addFriendAction = m_menu->addAction("Add Friend...");
|
m_addFriendAction = m_menu->addAction("Add Friend...");
|
||||||
|
|
||||||
connect(m_addFriendAction, SIGNAL(triggered()),
|
connect(m_addFriendAction, SIGNAL(triggered()),
|
||||||
|
Reference in New Issue
Block a user