diff --git a/src/pyFAI/gui/widgets/LoadImageToolButton.py b/src/pyFAI/gui/widgets/LoadImageToolButton.py index fa9e1b4ee..236641d52 100644 --- a/src/pyFAI/gui/widgets/LoadImageToolButton.py +++ b/src/pyFAI/gui/widgets/LoadImageToolButton.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (C) 2016-2018 European Synchrotron Radiation Facility +# Copyright (C) 2016-2024 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -25,7 +25,7 @@ __authors__ = ["V. Valls"] __license__ = "MIT" -__date__ = "16/10/2020" +__date__ = "29/01/2024" import fabio import os @@ -88,6 +88,8 @@ def __execute(self): data = None self.parent()._setValue(filename=filename, data=data) + # adress #2047 + dialog.deleteLater() class _LoadImageFromImageDialogAction(qt.QAction): @@ -112,6 +114,8 @@ def __execute(self): url = dialog.selectedUrl() data = dialog.selectedImage() self.parent()._setValue(filename=url, data=data) + # adress #2047 + dialog.deleteLater() class LoadImageToolButton(qt.QToolButton):