Hi,

PostgisQuery (Postgis SQL Editor) crashed QGIS when I installed it and crashes with a Bus Error every time QGIS starts. This is the same problem as I had with GDAL Tools (see Ticket #2395, now fixed). I tried the same fix as they applied to GDAL Tools and it has fixed it. As this appears to be part of a template for Python plugins then it might be worth modifying the template.

The fix goes in the __init__ method of the plugin.py file.

    self.localePath = pluginPath
    if QFileInfo( self.localePath ).exists():         <-- Add test
      self.translator = QTranslator()                  <--- from here below as part of condition.
      self.translator.load(self.localePath)
      if qVersion() > '4.3.3':                               
        QCoreApplication.installTranslator(self.translator)

Details are all in the original ticket.

Roland

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to