From: Ed Page Date: Tue, 26 Apr 2011 22:47:24 +0000 (-0500) Subject: I got mixed up, I thought this attribute meant supports that orientation, not force... X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=commitdiff_plain;h=7a79a5e68037d95fd62e1250438aa44027d1a073 I got mixed up, I thought this attribute meant supports that orientation, not force that orientation --- diff --git a/src/util/qui_utils.py b/src/util/qui_utils.py index ac43ee6..11b3453 100644 --- a/src/util/qui_utils.py +++ b/src/util/qui_utils.py @@ -352,8 +352,8 @@ def _maemo_set_window_orientation(window, orientation): window.setAttribute(QtCore.Qt.WA_Maemo5LandscapeOrientation, True) window.setAttribute(QtCore.Qt.WA_Maemo5PortraitOrientation, False) elif orientation is None: - window.setAttribute(QtCore.Qt.WA_Maemo5LandscapeOrientation, True) - window.setAttribute(QtCore.Qt.WA_Maemo5PortraitOrientation, True) + window.setAttribute(QtCore.Qt.WA_Maemo5LandscapeOrientation, False) + window.setAttribute(QtCore.Qt.WA_Maemo5PortraitOrientation, False) else: raise RuntimeError("Unknown orientation: %r" % orientation)