author | zecke <zecke> | 2002-10-18 12:47:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-18 12:47:45 (UTC) |
commit | a574a09dd7b24091a4d2093c8b046ccd32e78d63 (patch) (side-by-side diff) | |
tree | 36408789ef101637ed28c1bb5aa8cb00c5197472 | |
parent | 605e9ccf2bcfa8e16059a1ce023baa2c41d47c88 (diff) | |
download | opie-a574a09dd7b24091a4d2093c8b046ccd32e78d63.zip opie-a574a09dd7b24091a4d2093c8b046ccd32e78d63.tar.gz opie-a574a09dd7b24091a4d2093c8b046ccd32e78d63.tar.bz2 |
If a dialog get's accepted call QDialog::accept and not reject
Now Opie is fully working under X11
Thanks mallum for the one and only matchbox
-rw-r--r-- | x11/libqpe-x11/qpe/qpeapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp index 75a8189..49115d8 100644 --- a/x11/libqpe-x11/qpe/qpeapplication.cpp +++ b/x11/libqpe-x11/qpe/qpeapplication.cpp @@ -727,25 +727,25 @@ int QPEApplication::x11ClientMessage(QWidget* w, XEvent* event, bool b ) { qWarning("accepted!!!"); /* * I'm not sure if we should use activeWidget * or activeModalWidget * a QDialog could be not modal too */ if ( w->inherits("QDialog" ) ) { qWarning("inherits QDialog!!!"); QDialog* dia = (QDialog*)w; /* * call it directly or via QTimer::singleShot? */ - QTimer::singleShot(0, dia, SLOT(reject() ) ); + QTimer::singleShot(0, dia, SLOT(accept() ) ); return 0; } } } return QApplication::x11ClientMessage(w, event, b ); } #define KeyPress XKeyPress #define KeyRelease XKeyRelease #if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) |