mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Emit finished() when SettingsDialog closes.
This commit is contained in:
@@ -78,7 +78,6 @@ SettingsDialog::SettingsDialog(QObject *parent )
|
|||||||
, m_advancedWidgetUi( new Ui_Settings_Advanced )
|
, m_advancedWidgetUi( new Ui_Settings_Advanced )
|
||||||
, m_advancedWidget( new QWidget )
|
, m_advancedWidget( new QWidget )
|
||||||
, m_proxySettings( 0 )
|
, m_proxySettings( 0 )
|
||||||
, m_rejected( false )
|
|
||||||
, m_restartRequired( false )
|
, m_restartRequired( false )
|
||||||
, m_accountModel( 0 )
|
, m_accountModel( 0 )
|
||||||
, m_sipSpinner( 0 )
|
, m_sipSpinner( 0 )
|
||||||
@@ -308,6 +307,7 @@ SettingsDialog::saveSettings()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit finished( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -338,7 +338,7 @@ SettingsDialog::serventReady()
|
|||||||
void
|
void
|
||||||
SettingsDialog::onRejected()
|
SettingsDialog::onRejected()
|
||||||
{
|
{
|
||||||
m_rejected = true;
|
emit finished( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -78,12 +78,13 @@ public:
|
|||||||
|
|
||||||
void show();
|
void show();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void finished( bool saved );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent( QEvent* e );
|
void changeEvent( QEvent* e );
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onRejected();
|
|
||||||
|
|
||||||
void toggleRemoteMode();
|
void toggleRemoteMode();
|
||||||
void toggleProxyEnabled();
|
void toggleProxyEnabled();
|
||||||
void toggleAutoDetectIp( bool checked );
|
void toggleAutoDetectIp( bool checked );
|
||||||
@@ -101,10 +102,10 @@ private slots:
|
|||||||
void updateScanOptionsView();
|
void updateScanOptionsView();
|
||||||
void serventReady();
|
void serventReady();
|
||||||
void aclEntryClearButtonClicked();
|
void aclEntryClearButtonClicked();
|
||||||
void requiresRestart();
|
|
||||||
|
|
||||||
private slots:
|
void requiresRestart();
|
||||||
void saveSettings();
|
void saveSettings();
|
||||||
|
void onRejected();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui_Settings_Accounts* m_accountsWidgetUi;
|
Ui_Settings_Accounts* m_accountsWidgetUi;
|
||||||
@@ -119,7 +120,6 @@ private:
|
|||||||
QToolbarTabDialog* m_dialog;
|
QToolbarTabDialog* m_dialog;
|
||||||
|
|
||||||
ProxyDialog m_proxySettings;
|
ProxyDialog m_proxySettings;
|
||||||
bool m_rejected;
|
|
||||||
bool m_restartRequired;
|
bool m_restartRequired;
|
||||||
Tomahawk::Accounts::AccountModel* m_accountModel;
|
Tomahawk::Accounts::AccountModel* m_accountModel;
|
||||||
Tomahawk::Accounts::AccountModelFilterProxy* m_accountProxy;
|
Tomahawk::Accounts::AccountModelFilterProxy* m_accountProxy;
|
||||||
|
Reference in New Issue
Block a user