From: Stefanos Harhalakis Date: Fri, 14 Jan 2011 00:16:28 +0000 (+0000) Subject: Avoid problems with orientation X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=126d0a55266cb0119b90d417e6a4c74e83fc995e;hp=1960405d44678762387732ae80af4665ff7a268e;p=drlaunch Avoid problems with orientation --- diff --git a/src/widget.py b/src/widget.py index 1918367..11e4cf9 100755 --- a/src/widget.py +++ b/src/widget.py @@ -129,6 +129,10 @@ class DrlaunchPlugin(IconGrid, HomePluginItem, FremantleRotation): HomePluginItem.do_realize(self) def on_orientation_changed(self, orientation): + # Avoid bugs + if orientation==None or len(orientation)==0: + return + # Get the first character of the string (l/p) o=orientation[0] self.setMode(o)