summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qwidget_win.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-04-30 10:24:20 +0200
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-04-30 10:24:20 +0200
commitf9b4c7bea991d1786c60406abc9da95354b0d6e3 (patch)
tree63114e007a210888052ba4a5a9996c06500e79ff /src/gui/kernel/qwidget_win.cpp
parent139235cfc51bcf152610747cfc09d72bdea081bd (diff)
downloadqt4-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.cpp2
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