mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 12:52:30 +02:00
Remove addPeerManually method in TomahawkWindow
This commit is contained in:
@@ -529,7 +529,6 @@ TomahawkWindow::setupSignals()
|
|||||||
|
|
||||||
// <Menu Items>
|
// <Menu Items>
|
||||||
ActionCollection *ac = ActionCollection::instance();
|
ActionCollection *ac = ActionCollection::instance();
|
||||||
// connect( ui->actionAddPeerManually, SIGNAL( triggered() ), SLOT( addPeerManually() ) );
|
|
||||||
connect( ac->getAction( "preferences" ), SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
connect( ac->getAction( "preferences" ), SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
||||||
connect( ac->getAction( "diagnostics" ), SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
|
connect( ac->getAction( "diagnostics" ), SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
|
||||||
connect( ac->getAction( "legalInfo" ), SIGNAL( triggered() ), SLOT( legalInfo() ) );
|
connect( ac->getAction( "legalInfo" ), SIGNAL( triggered() ), SLOT( legalInfo() ) );
|
||||||
@@ -861,37 +860,6 @@ TomahawkWindow::rescanCollectionManually()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
TomahawkWindow::addPeerManually()
|
|
||||||
{
|
|
||||||
TomahawkSettings* s = TomahawkSettings::instance();
|
|
||||||
bool ok;
|
|
||||||
QString addr = QInputDialog::getText( this, tr( "Connect To Peer" ),
|
|
||||||
tr( "Enter peer address:" ), QLineEdit::Normal,
|
|
||||||
s->value( "connip" ).toString(), &ok ); // FIXME
|
|
||||||
if ( !ok )
|
|
||||||
return;
|
|
||||||
|
|
||||||
s->setValue( "connip", addr );
|
|
||||||
QString ports = QInputDialog::getText( this, tr( "Connect To Peer" ),
|
|
||||||
tr( "Enter peer port:" ), QLineEdit::Normal,
|
|
||||||
s->value( "connport", "50210" ).toString(), &ok );
|
|
||||||
if ( !ok )
|
|
||||||
return;
|
|
||||||
|
|
||||||
s->setValue( "connport", ports );
|
|
||||||
int port = ports.toInt();
|
|
||||||
QString key = QInputDialog::getText( this, tr( "Connect To Peer" ),
|
|
||||||
tr( "Enter peer key:" ), QLineEdit::Normal,
|
|
||||||
"whitelist", &ok );
|
|
||||||
if ( !ok )
|
|
||||||
return;
|
|
||||||
|
|
||||||
qDebug() << "Attempting to connect to" << addr;
|
|
||||||
Servent::instance()->connectToPeer( addr, port, key );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TomahawkWindow::showOfflineSources()
|
TomahawkWindow::showOfflineSources()
|
||||||
{
|
{
|
||||||
|
@@ -119,8 +119,6 @@ private slots:
|
|||||||
void onXSPFError( XSPFLoader::XSPFErrorCode error );
|
void onXSPFError( XSPFLoader::XSPFErrorCode error );
|
||||||
void onXSPFOk( const Tomahawk::playlist_ptr& );
|
void onXSPFOk( const Tomahawk::playlist_ptr& );
|
||||||
|
|
||||||
void addPeerManually();
|
|
||||||
|
|
||||||
void onPlaybackLoading( const Tomahawk::result_ptr& result );
|
void onPlaybackLoading( const Tomahawk::result_ptr& result );
|
||||||
|
|
||||||
void audioStarted();
|
void audioStarted();
|
||||||
|
Reference in New Issue
Block a user