Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
ac51ba10
Commit
ac51ba10
authored
Feb 27, 2022
by
Alexander Neundorf
Committed by
Alexander Neundorf
Mar 05, 2022
Browse files
Search& Replace: fix type in variable name
parent
a7f6d1fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/MatchModel.cpp
View file @
ac51ba10
...
...
@@ -1033,12 +1033,12 @@ bool MatchModel::setData(const QModelIndex &itemIndex, const QVariant &, int rol
}
if
(
itemIndex
.
internalId
()
==
FileItemId
)
{
int
fileR
r
ow
=
itemIndex
.
row
();
if
(
fileR
r
ow
<
0
||
fileR
r
ow
>=
m_matchFiles
.
size
())
{
int
fileRow
=
itemIndex
.
row
();
if
(
fileRow
<
0
||
fileRow
>=
m_matchFiles
.
size
())
{
return
false
;
}
bool
checked
=
m_matchFiles
[
fileR
r
ow
].
checkState
!=
Qt
::
Checked
;
// we toggle the current value
setFileChecked
(
fileR
r
ow
,
checked
);
bool
checked
=
m_matchFiles
[
fileRow
].
checkState
!=
Qt
::
Checked
;
// we toggle the current value
setFileChecked
(
fileRow
,
checked
);
// compare file items
Qt
::
CheckState
checkState
=
m_matchFiles
[
0
].
checkState
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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