Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 5115c91

Browse files
committed
Restore sync on close
1 parent 944dfa7 commit 5115c91

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/duqf-widgets/dumainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void DuMainWindow::connectEvents()
9393
#ifdef Q_OS_WIN
9494
connect(m_minimizeAction, &QAction::triggered, this, &DuMainWindow::minimizeTriggered);
9595
connect(m_maximizeAction, &QAction::triggered, this, &DuMainWindow::maximizeTriggered);
96-
connect(m_closeAction, &QAction::triggered, qApp, &QCoreApplication::quit);
96+
connect(m_closeAction, &QAction::triggered, this, &DuMainWindow::close);
9797
#endif
9898
}
9999

src/mainwindow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ void MainWindow::hidePropertiesDock()
205205

206206
void MainWindow::onQuit()
207207
{
208+
209+
208210
QFontDatabase::removeAllApplicationFonts();
209211
trayIcon->hide();
210212
}

0 commit comments

Comments
 (0)