Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/clientsettingsdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,15 @@ void CClientSettingsDlg::showEvent ( QShowEvent* event )
QDialog::showEvent ( event );
}

void CClientSettingsDlg::hideEvent ( QHideEvent* event )
{
// store the settings when the dialog is closed, so that they survive the

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// store the settings when the dialog is closed, so that they survive the
// store the settings when the dialog is hidden, so that they survive the

// application being terminated before it becomes inactive
pSettings->Save ( false );

QDialog::hideEvent ( event );
}

bool CClientSettingsDlg::eventFilter ( QObject* obj, QEvent* event )
{
// Refresh MIDI device list when user clicks on the dropdown
Expand Down
1 change: 1 addition & 0 deletions src/clientsettingsdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class CClientSettingsDlg : public CBaseDlg, private Ui_CClientSettingsDlgBase
QString GenSndCrdBufferDelayString ( const int iFrameSize, const QString strAddText = "" );

virtual void showEvent ( QShowEvent* ) override;
virtual void hideEvent ( QHideEvent* ) override;
virtual bool eventFilter ( QObject* obj, QEvent* event ) override;

CClient* pClient;
Expand Down
Loading