From 64a2854130ec1dcf0e4e717de76e22ca037fff15 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 8 Jan 2013 19:59:05 +0100 Subject: [PATCH] Send invite on returnPressed. --- src/widgets/AccountWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/AccountWidget.cpp b/src/widgets/AccountWidget.cpp index fa4aa2c12..52ab83996 100644 --- a/src/widgets/AccountWidget.cpp +++ b/src/widgets/AccountWidget.cpp @@ -1,6 +1,6 @@ /* === This file is part of Tomahawk Player - === * - * Copyright 2012 Teo Mrnjavac + * Copyright 2012-2013, Teo Mrnjavac * * Tomahawk is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -292,6 +292,8 @@ AccountWidget::setupConnections( const QPersistentModelIndex& idx, int accountId this, SLOT( changeAccountConnectionState( bool ) ) ); connect( m_inviteButton, SIGNAL( clicked() ), this, SLOT( sendInvite() ) ); + connect( m_inviteEdit, SIGNAL( returnPressed() ), + this, SLOT( sendInvite() ) ); m_inviteEdit->setPlaceholderText( account->sipPlugin()->inviteString() ); }