Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAlarm
Commits
fc8da3c4
Commit
fc8da3c4
authored
Sep 03, 2011
by
David Jarvie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deletion of alarms (non-Akonadi)
parent
2a6d92d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mainwindow.cpp
mainwindow.cpp
+3
-3
No files found.
mainwindow.cpp
View file @
fc8da3c4
...
...
@@ -844,13 +844,13 @@ void MainWindow::slotDelete(bool force)
undos
.
append
(
events
[
i
++
],
c
);
}
#else
for
(
int
i
=
0
,
end
=
ids
.
count
();
i
<
end
;
++
i
)
for
(
int
i
=
0
,
e
=
0
,
end
=
ids
.
count
();
i
<
end
;
++
i
)
{
AlarmResource
*
r
=
resources
->
resourceForEvent
(
ids
[
i
]);
if
(
!
r
)
events
.
remove
(
i
);
events
.
remove
(
e
);
else
undos
.
append
(
*
events
[
i
],
r
);
undos
.
append
(
*
events
[
e
++
],
r
);
}
#endif
...
...
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