Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
e38cdb11
Commit
e38cdb11
authored
Jul 29, 2020
by
Nicolas Fella
Browse files
Add missing references to loop variable
parent
3ca55ad7
Pipeline
#28704
passed with stage
in 16 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/sms/smsplugin.cpp
View file @
e38cdb11
...
...
@@ -62,7 +62,7 @@ void SmsPlugin::sendSms(const QDBusVariant& addresses, const QString& messageBod
QList
<
ConversationAddress
>
addressList
=
ConversationAddress
::
listfromDBus
(
addresses
);
QVariantList
addressMapList
;
for
(
const
ConversationAddress
address
:
addressList
)
{
for
(
const
ConversationAddress
&
address
:
addressList
)
{
QVariantMap
addressMap
({{
QStringLiteral
(
"address"
),
address
.
address
()}});
addressMapList
.
append
(
addressMap
);
qDebug
()
<<
address
.
address
();
...
...
smsapp/conversationssortfilterproxymodel.cpp
View file @
e38cdb11
...
...
@@ -67,8 +67,8 @@ bool ConversationsSortFilterProxyModel::filterAcceptsRow(int sourceRow, const QM
}
// This block of code compares each address in the multi target conversation to find a match
QList
<
ConversationAddress
>
addressList
=
sourceModel
()
->
data
(
index
,
ConversationListModel
::
AddressesRole
).
value
<
QList
<
ConversationAddress
>>
();
for
(
const
ConversationAddress
address
:
addressList
)
{
const
QList
<
ConversationAddress
>
addressList
=
sourceModel
()
->
data
(
index
,
ConversationListModel
::
AddressesRole
).
value
<
QList
<
ConversationAddress
>>
();
for
(
const
ConversationAddress
&
address
:
addressList
)
{
QString
canonicalAddress
=
SmsHelper
::
canonicalizePhoneNumber
(
address
.
address
());
if
(
canonicalAddress
.
contains
(
filterRegExp
()))
{
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment