Crashes on startup in Windows XP

Bug #584113 reported by Stephen G
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Levels
Fix Released
Medium
Stephen G

Bug Description

The Vista beautification code causes a crash on Windows XP.

Culprit code is:
  if os.name == "nt":
   self.setAttribute(QtCore.Qt.WA_NoSystemBackground, True)
   from ctypes import windll, c_int, byref
                 windll.dwmapi.DwmExtendFrameIntoClientArea(c_int(self.winId()), byref(c_int(-1)))

Revision history for this message
Stephen G (stephen.g) wrote :

The original check is too simple, it needs to be windows vista or 7. Can fix this using data from:
import platform
platform.system()
platform.version()
platform.release()

http://docs.python.org/library/platform.html

Changed in levels:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Stephen G (stephen.g)
Revision history for this message
Stephen G (stephen.g) wrote :

fixed in alpha.4

Changed in levels:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.