Commit 61624fc0 by devttys0

Fixed pyqt segfault on exit in Python3

parent e8119bd4
......@@ -106,9 +106,14 @@ class Entropy(Module):
if self.display_results:
self.footer()
if self.do_plot and not self.save_plot:
from pyqtgraph.Qt import QtGui
QtGui.QApplication.instance().exec_()
if self.do_plot:
import pyqtgraph as pg
if not self.save_plot:
from pyqtgraph.Qt import QtGui
QtGui.QApplication.instance().exec_()
pg.exit()
def calculate_file_entropy(self, fp):
# Clear results from any previously analyzed files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment