L4ys / LazyIDA

Make your IDA Lazy!
MIT License
1.07k stars 162 forks source link

Wrong Qt wrapper detection #2

Closed a1ext closed 6 years ago

a1ext commented 6 years ago

Hi, Could you fix a typo in Qt wrapper detection code [here]:(https://github.com/L4ys/LazyIDA/blob/master/LazyIDA.py#L4)

IDA7 = idaapi.IDA_SDK_VERSION >= 700
if IDA7:
    from PyQt5.Qt import QApplication
else:
    from PySide.QtGui import QApplication

PyQt5 is used instead of PySide since IDA 6.9 (IDA_SDK_VERSION >= 690), so in IDA 6.9x your plugin raises an error:

LazyIDA.py: No module named PySide.QtGui
Traceback (most recent call last):
  File "M:\!re\IDA695\python\ida_idaapi.py", line 509, in IDAPython_ExecScript
    execfile(script, g)
  File "M:/!re/IDA695/plugins/LazyIDA.py", line 8, in <module>
    from PySide.QtGui import QApplication
ImportError: No module named PySide.QtGui

Thanks