diff options
author | Jan Holthuis <jholthuis@mixxx.org> | 2021-07-16 12:47:13 +0200 |
---|---|---|
committer | Jan Holthuis <jholthuis@mixxx.org> | 2021-07-16 12:59:07 +0200 |
commit | ccf6bb22f6e0811f3464ee61d1958f077c7db2cf (patch) | |
tree | 52adf7f0a5fd7fe0a116bca43e10e63323d1ba17 /src/mixxxmainwindow.cpp | |
parent | b0e0a32f0ddbafdf4f353c61ec27fb75f2eadffd (diff) |
DlgPreferences: Use signals to request skin reload
Instead of calling `rebootMixxxView` directly, we can just emit a
signal. This allows removing any references to the `MixxxMainWindow` in
`DlgPreferences`.
Diffstat (limited to 'src/mixxxmainwindow.cpp')
-rw-r--r-- | src/mixxxmainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mixxxmainwindow.cpp b/src/mixxxmainwindow.cpp index 4090bf44d2..994d94e45d 100644 --- a/src/mixxxmainwindow.cpp +++ b/src/mixxxmainwindow.cpp @@ -236,6 +236,11 @@ MixxxMainWindow::MixxxMainWindow( &DlgPreferences::tooltipModeChanged, this, &MixxxMainWindow::slotTooltipModeChanged); + connect(m_pPrefDlg, + &DlgPreferences::reloadUserInterface, + this, + &MixxxMainWindow::rebootMixxxView, + Qt::DirectConnection); // Connect signals to the menubar. Should be done before emit newSkinLoaded. connectMenuBar(); |