diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-30 10:24:20 +0200 |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-30 10:24:20 +0200 |
commit | f9b4c7bea991d1786c60406abc9da95354b0d6e3 (patch) | |
tree | 63114e007a210888052ba4a5a9996c06500e79ff /src/gui/kernel/qwidget_win.cpp | |
parent | 139235cfc51bcf152610747cfc09d72bdea081bd (diff) | |
download | qt4-tools-f9b4c7bea991d1786c60406abc9da95354b0d6e3.tar.gz |
Don't call RegisterTouchWindow() if we don't have a window id
Diffstat (limited to 'src/gui/kernel/qwidget_win.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp index 26e66b1839..f53a3ef32f 100644 --- a/src/gui/kernel/qwidget_win.cpp +++ b/src/gui/kernel/qwidget_win.cpp @@ -498,7 +498,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO } // ### don't always register for touch events - if (QApplicationPrivate::RegisterTouchWindow && !desktop) + if (id && QApplicationPrivate::RegisterTouchWindow && !desktop) QApplicationPrivate::RegisterTouchWindow(id, 0); q->setAttribute(Qt::WA_WState_Created); // accept move/resize events |