[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/unity/WebKit/WebCore/platform/qt
From: Nikolas Zimmermann <wildfox () kde ! org>
Date: 2006-07-30 11:02:49
Message-ID: 1154257369.181833.4684.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 567832 by wildfox:
Get rid of an invalid read by initializing the type, also respect the password mode
M +4 -1 LineEditQt.cpp
--- branches/work/unity/WebKit/WebCore/platform/qt/LineEditQt.cpp #567831:567832
@@ -40,7 +40,7 @@
using namespace WebCore;
-PlatformLineEdit::PlatformLineEdit(PlatformLineEdit::Type) : m_lineEdit(0)
+PlatformLineEdit::PlatformLineEdit(PlatformLineEdit::Type type) : m_lineEdit(0), m_type(type)
{
qDebug("PlatformLineEdit::PlatformLineEdit(), this=%p", this);
}
@@ -58,6 +58,9 @@
Q_ASSERT(m_lineEdit == 0);
m_lineEdit = new QLineEdit(parent);
+ if(m_type == Password)
+ m_lineEdit->setEchoMode(QLineEdit::Password);
+
setQWidget(m_lineEdit);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic