--- a/eric6/Tools/TRPreviewer.py Tue Oct 06 17:55:10 2020 +0200 +++ b/eric6/Tools/TRPreviewer.py Tue Oct 06 17:56:16 2020 +0200 @@ -17,13 +17,14 @@ from PyQt5.QtGui import QKeySequence from PyQt5.QtWidgets import ( QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QWhatsThis, QMdiArea, - qApp, QApplication, QComboBox, QVBoxLayout, QAction, QLabel + QApplication, QComboBox, QVBoxLayout, QAction, QLabel ) from PyQt5 import uic from E5Gui import E5MessageBox, E5FileDialog from E5Gui.E5MainWindow import E5MainWindow +from E5Gui.E5Application import e5App import UI.PixmapCache import UI.Config @@ -203,7 +204,7 @@ """<b>Quit</b>""" """<p>Quit the application.</p>""" )) - self.exitAct.triggered.connect(qApp.closeAllWindows) + self.exitAct.triggered.connect(e5App().closeAllWindows) self.whatsThisAct = QAction( UI.PixmapCache.getIcon("whatsThis"),