diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-24 17:50:47 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-24 17:50:47 +0200 |
| commit | ff40d2a6dffdf234ade8bc4a5faa7624e58d5379 (patch) | |
| tree | cf7b2469957db7d6d602cd4532263750eecdb9c4 /src/calendarwindow.cpp | |
| parent | 7494ce76f1eefc2a9a2112d2f2ffec4709d90e08 (diff) | |
| download | qtmaildir-ff40d2a6dffdf234ade8bc4a5faa7624e58d5379.tar.gz qtmaildir-ff40d2a6dffdf234ade8bc4a5faa7624e58d5379.zip | |
fix: drop orphaned overrides when a series stops, plus review minors
Diffstat (limited to 'src/calendarwindow.cpp')
| -rw-r--r-- | src/calendarwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/calendarwindow.cpp b/src/calendarwindow.cpp index 7079c62..d9c1da2 100644 --- a/src/calendarwindow.cpp +++ b/src/calendarwindow.cpp @@ -145,6 +145,8 @@ CalendarWindow::CalendarWindow(const Config &config, const QStringList &ownAddre if (index >= 0) m_collectionBox->setCurrentIndex(index); (agenda ? m_agendaButton : m_monthButton)->click(); + if (agenda) + m_agendaView->scrollToDay(QDate::currentDate()); } CalendarWindow::~CalendarWindow() = default; @@ -679,6 +681,9 @@ bool CalendarWindow::applyChanges(const QList<Change> &changes, bool reverse) for (int j = done.size() - 1; j >= 0; --j) { QString ignored; CalendarWriter::replace(done[j].path, done[j].after, done[j].before, &ignored); + // The write was reverted, so it must not be reported as a + // difference at the next sync. + m_written.remove(done[j].path); } status(r == CalendarWriter::Result::Stale ? tr("The event changed on disk, probably from a sync. Check it and try again.") |
