[Bug 284224] maildir resource does not become AgentBase::Broken when started without a valid maildir path
Will Stephenson
wstephenson at kde.org
Sun Oct 16 23:42:41 BST 2011
https://bugs.kde.org/show_bug.cgi?id=284224
--- Comment #1 from Will Stephenson <wstephenson kde org> 2011-10-16 22:42:40 ---
If MaildirResource::ensureSaneConfiguration() is called in the ctor, we notice
the problem early. This would allow kmail-migrator to correct the problem or
warn the user.
diff --git a/resources/maildir/maildirresource.cpp
b/resources/maildir/maildirresource.cpp
index 7536aa8..89ff635 100644
--- a/resources/maildir/maildirresource.cpp
+++ b/resources/maildir/maildirresource.cpp
@@ -112,6 +112,7 @@ MaildirResource::MaildirResource( const QString &id )
scope.setAncestorRetrieval( ItemFetchScope::None );
setItemSynchronizationFetchScope( scope );
+ ensureSaneConfiguration();
connect( m_fsWatcher, SIGNAL(dirty(QString)), SLOT(slotDirChanged(QString))
);
synchronizeCollectionTree();
l
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list