-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 6 | ||||
-rw-r--r-- | core/applets/rotateapplet/rotate.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index 8f323d6..653c61f 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp @@ -42,5 +42,4 @@ RotateApplet::RotateApplet ( ) { m_native = true; - m_startupRot = QPEApplication::defaultRotation(); } @@ -91,9 +90,10 @@ QPopupMenu *RotateApplet::popup ( QWidget * ) const void RotateApplet::activated ( ) { + int currentRotation = QPEApplication::defaultRotation(); int newRotation; if ( m_native == true ) { - newRotation = m_startupRot + 90; + newRotation = currentRotation + 90; } else { - newRotation = m_startupRot; + newRotation = currentRotation - 90; } QCopEnvelope env( "QPE/System", "setCurrentRotation(int)" ); diff --git a/core/applets/rotateapplet/rotate.h b/core/applets/rotateapplet/rotate.h index 11e2ec9..c4087f9 100644 --- a/core/applets/rotateapplet/rotate.h +++ b/core/applets/rotateapplet/rotate.h @@ -56,5 +56,4 @@ public: private: bool m_native; - int m_startupRot; ulong ref; }; |