-rw-r--r-- | library/qpeapplication.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 86aa53d..4d0b0ea 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -97,9 +97,9 @@ class QPEApplicationData public: QPEApplicationData ( ) : presstimer( 0 ), presswidget( 0 ), rightpressed( false ), kbgrabbed( false ), notbusysent( false ), preloaded( false ), forceshow( false ), nomaximize( false ), - keep_running( true ), qpe_main_widget( 0 ) + keep_running( true ), qpe_main_widget( 0 ), qcopQok( false ) { qcopq.setAutoDelete( TRUE ); } @@ -113,10 +113,12 @@ public: bool notbusysent : 1; bool preloaded : 1; bool forceshow : 1; bool nomaximize : 1; + bool qcopQok : 1; bool keep_running : 1; + QStringList langs; QString appName; struct QCopRec { @@ -141,8 +143,11 @@ public: qcopq.append( new QCopRec( ch, msg, data ) ); } void sendQCopQ() { + if (!qcopQok ) + return; + QCopRec * r; #ifndef QT_NO_COP for ( QListIterator<QCopRec> it( qcopq ); ( r = it.current() ); ++it ) @@ -1892,8 +1897,9 @@ void QPEApplication::grabKeyboard() \reimp */ int QPEApplication::exec() { + d->qcopQok = true; #ifndef QT_NO_COP d->sendQCopQ(); #endif |