mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41: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:
|
||||
import qt.base.cxfreeze_fix
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
app = QApplication(sys.argv)
|
||||
QCoreApplication.setOrganizationName('Hardcoded Software')
|
||||
QCoreApplication.setApplicationName(__appname__)
|
||||
@@ -41,4 +41,7 @@ if __name__ == "__main__":
|
||||
if not ISWINDOWS:
|
||||
dgapp.model.registered = True
|
||||
install_excepthook()
|
||||
sys.exit(app.exec_())
|
||||
return app.exec()
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user