mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-07 17:42:35 +02:00
Don't create network submenu for jabber if no account is set
This commit is contained in:
parent
e22c430f00
commit
12d8a892de
@ -8,9 +8,12 @@
|
||||
#include <QLineEdit>
|
||||
|
||||
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...");
|
||||
|
||||
connect(m_addFriendAction, SIGNAL(triggered()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user