mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Revert Check for changed() when updating proxy settings
This commit is contained in:
@@ -270,6 +270,9 @@ SettingsDialog::saveSettings()
|
|||||||
s->applyChanges();
|
s->applyChanges();
|
||||||
s->sync();
|
s->sync();
|
||||||
|
|
||||||
|
if ( m_restartRequired )
|
||||||
|
QMessageBox::information( 0, tr( "Information" ), tr( "Some changed settings will not take effect until Tomahawk is restarted" ) );
|
||||||
|
|
||||||
TomahawkUtils::NetworkProxyFactory* proxyFactory = TomahawkUtils::proxyFactory();
|
TomahawkUtils::NetworkProxyFactory* proxyFactory = TomahawkUtils::proxyFactory();
|
||||||
if ( !m_advancedWidgetUi->enableProxyCheckBox->isChecked() )
|
if ( !m_advancedWidgetUi->enableProxyCheckBox->isChecked() )
|
||||||
{
|
{
|
||||||
@@ -288,8 +291,6 @@ SettingsDialog::saveSettings()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_restartRequired || proxyFactory->changed() )
|
|
||||||
QMessageBox::information( 0, tr( "Information" ), tr( "Some changed settings will not take effect until Tomahawk is restarted" ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -364,7 +365,6 @@ void
|
|||||||
SettingsDialog::toggleProxyEnabled()
|
SettingsDialog::toggleProxyEnabled()
|
||||||
{
|
{
|
||||||
m_advancedWidgetUi->proxyButton->setEnabled( m_advancedWidgetUi->enableProxyCheckBox->isChecked() );
|
m_advancedWidgetUi->proxyButton->setEnabled( m_advancedWidgetUi->enableProxyCheckBox->isChecked() );
|
||||||
m_restartRequired = (TomahawkSettings::instance()->proxyType() == QNetworkProxy::Socks5Proxy) != m_advancedWidgetUi->proxyButton->isEnabled();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user