mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-02-25 13:11:39 +00:00
Fixed occasional core dumps on exit
This commit is contained in:
@@ -23,7 +23,7 @@ from core_{edition} import __version__, __appname__
|
|||||||
if ISWINDOWS:
|
if ISWINDOWS:
|
||||||
import qt.base.cxfreeze_fix
|
import qt.base.cxfreeze_fix
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
QCoreApplication.setOrganizationName('Hardcoded Software')
|
QCoreApplication.setOrganizationName('Hardcoded Software')
|
||||||
QCoreApplication.setApplicationName(__appname__)
|
QCoreApplication.setApplicationName(__appname__)
|
||||||
@@ -41,4 +41,7 @@ if __name__ == "__main__":
|
|||||||
if not ISWINDOWS:
|
if not ISWINDOWS:
|
||||||
dgapp.model.registered = True
|
dgapp.model.registered = True
|
||||||
install_excepthook()
|
install_excepthook()
|
||||||
sys.exit(app.exec_())
|
return app.exec()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sys.exit(main())
|
||||||
|
|||||||
Reference in New Issue
Block a user