summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-03-19 08:32:55 +0300
committerMichele Calgaro <[email protected]>2024-04-03 09:10:05 +0900
commitbca1fe4e8f3bcf56ddd115eb0ce4cf96c22d0956 (patch)
treea6dd62b1d4b565d610681a7dd2075359ee0eb334
parenta097a55f6217aa81cacd3a03c0f9882548ab0bc8 (diff)
downloadtqt3-bca1fe4e8f3bcf56ddd115eb0ce4cf96c22d0956.tar.gz
tqt3-bca1fe4e8f3bcf56ddd115eb0ce4cf96c22d0956.zip
TQTextEdit: add missing mightStartDrag initialization
mightStartDrag might have been used uninitialized when moving mouse with pressed mouse button into window. Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 2b1c78cb539b208290adb189adccd125cef19105)
-rw-r--r--src/widgets/qtextedit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp
index 4994f47d3..723ccc57e 100644
--- a/src/widgets/qtextedit.cpp
+++ b/src/widgets/qtextedit.cpp
@@ -968,6 +968,7 @@ void TQTextEdit::init()
wrapMode = WidgetWidth;
wrapWidth = -1;
wPolicy = AtWhiteSpace;
+ mightStartDrag = FALSE;
inDnD = FALSE;
doc->setFormatter( new TQTextFormatterBreakWords );
doc->formatCollection()->defaultFormat()->setFont( TQScrollView::font() );