mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Fixed occasional core dumps on exit
This commit is contained in:
parent
a4256d3d2b
commit
664d630b96
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user