Skip to content

Commit 0505346

Browse files
committed
Fix GraphicEQ scroll/zoom settings to save properly
1 parent 914b65d commit 0505346

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MainWindow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ MainWindow::MainWindow(QString exepath,
348348
presetFragmentHost->repaint();
349349
WAF::Animation::sideSlideOut(presetFragmentHost, WAF::LeftSide);
350350
});
351+
352+
connect(qApp, &QApplication::aboutToQuit, this, &MainWindow::saveGraphicEQView);
351353
}
352354

353355
// Init 3-dot menu button
@@ -519,7 +521,6 @@ void MainWindow::fireTimerSignal()
519521
// Overrides
520522
void MainWindow::closeEvent(QCloseEvent *event)
521523
{
522-
saveGraphicEQView();
523524
#ifdef Q_OS_OSX
524525

525526
if (!event->spontaneous() || !isVisible())

0 commit comments

Comments
 (0)