mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Try to fix the OSX SettingsDialog focus issue.
This commit is contained in:
parent
07e8e356c3
commit
47f00b4a30
@ -262,6 +262,11 @@ SettingsDialog::SettingsDialog(QObject *parent )
|
||||
|
||||
connect( m_dialog, SIGNAL( accepted() ), SLOT( saveSettings() ) );
|
||||
connect( m_dialog, SIGNAL( rejected() ), SLOT( onRejected() ) );
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
if ( m_advancedWidgetUi->staticHostName->isEnabled() )
|
||||
m_advancedWidgetUi->remoteConnectionsGroupBox->setFocus();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -395,6 +400,11 @@ SettingsDialog::toggleRemoteMode()
|
||||
m_advancedWidgetUi->staticPort->setEnabled( m_advancedWidgetUi->staticIpRadioButton->isChecked() );
|
||||
m_advancedWidgetUi->staticHostNameLabel->setEnabled( m_advancedWidgetUi->staticIpRadioButton->isChecked() );
|
||||
m_advancedWidgetUi->staticPortLabel->setEnabled( m_advancedWidgetUi->staticIpRadioButton->isChecked() );
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
if ( m_advancedWidgetUi->staticHostName->isEnabled() )
|
||||
m_advancedWidgetUi->remoteConnectionsGroupBox->setFocus();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user