[vlmc-devel] fix Ctrl+Q doesn't call CloseEvent from QApplication::quit()

Hieu Pham git at videolan.org
Fri Mar 10 02:41:07 CET 2017


vlmc | branch: master | Hieu Pham <phamhuuquanghieu at gmail.com> | Thu Mar  9 19:37:30 2017 -0600| [d995a6423efb109c06b75315429d75e4a1bf8532] | committer: Yikai Lu

fix Ctrl+Q doesn't call CloseEvent from QApplication::quit()

> https://code.videolan.org/videolan/vlmc/commit/d995a6423efb109c06b75315429d75e4a1bf8532
---

 src/Gui/MainWindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 43fc3c8..37e3507 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -633,7 +633,7 @@ void
 MainWindow::on_actionQuit_triggered()
 {
     saveSettings();
-    QApplication::quit();
+    close();
 }
 
 void



More information about the Vlmc-devel mailing list