Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitely close the dialog to prevent crash #2064

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/pyFAI/gui/widgets/LoadImageToolButton.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -25,7 +25,7 @@

__authors__ = ["V. Valls"]
__license__ = "MIT"
__date__ = "16/10/2020"
__date__ = "29/01/2024"

import fabio
import os
Expand Down Expand Up @@ -88,6 +88,8 @@ def __execute(self):
data = None

self.parent()._setValue(filename=filename, data=data)
# adress #2047
dialog.deleteLater()


class _LoadImageFromImageDialogAction(qt.QAction):
Expand All @@ -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):
Expand Down
Loading