author | simon <simon> | 2003-03-26 09:38:07 (UTC) |
---|---|---|
committer | simon <simon> | 2003-03-26 09:38:07 (UTC) |
commit | b7a2238dad7f8f44c3354168d8e2685705616c78 (patch) (side-by-side diff) | |
tree | 709e51929ffb25afbe498deb2e9ee1e3d4ccbe44 /library | |
parent | 174bf901c2a59bbf1980ea3e770bfb33c50f1c08 (diff) | |
download | opie-b7a2238dad7f8f44c3354168d8e2685705616c78.zip opie-b7a2238dad7f8f44c3354168d8e2685705616c78.tar.gz opie-b7a2238dad7f8f44c3354168d8e2685705616c78.tar.bz2 |
- in the systemMessage handler for setCurrentRotation, call
setCurrentRotation only if we're the display server
-rw-r--r-- | library/qpeapplication.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 7463074..f5bf0c5 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -1046,51 +1046,53 @@ void QPEApplication::systemMessage( const QCString& msg, const QByteArray& data applyStyle(); } else if ( msg == "toggleApplicationMenu()" ) { QWidget *active = activeWindow ( ); if ( active ) { QPEMenuToolFocusManager *man = QPEMenuToolFocusManager::manager ( ); bool oldactive = man-> isActive ( ); man-> setActive( !man-> isActive() ); if ( !oldactive && !man-> isActive ( )) { // no menubar to toggle -> try O-Menu QCopEnvelope e ( "QPE/TaskBar", "toggleStartMenu()" ); } } } else if ( msg == "setDefaultRotation(int)" ) { if ( type() == GuiServer ) { int r; stream >> r; setDefaultRotation( r ); } } else if ( msg == "setCurrentRotation(int)" ) { - int r; - stream >> r; - setCurrentRotation( r ); + if ( type() == GuiServer ) { + int r; + stream >> r; + setCurrentRotation( r ); + } } else if ( msg == "shutdown()" ) { if ( type() == GuiServer ) shutdown(); } else if ( msg == "quit()" ) { if ( type() != GuiServer ) tryQuit(); } else if ( msg == "forceQuit()" ) { if ( type() != GuiServer ) quit(); } else if ( msg == "restart()" ) { if ( type() == GuiServer ) restart(); } else if ( msg == "language(QString)" ) { if ( type() == GuiServer ) { QString l; stream >> l; QString cl = getenv( "LANG" ); if ( cl != l ) { if ( l.isNull() ) |