[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkdepim-runtime=5D_migration/kres=3A_If_there_is_the?=
From: Frank Osterfeld <frank.osterfeld () kdab ! com>
Date: 2011-07-06 8:43:23
Message-ID: 20110706084323.EEA36A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit c5ce092db0d82ac475fb3fa611d3376afccd76bc by Frank Osterfeld.
Committed on 06/07/2011 at 09:44.
Pushed by osterfeld into branch 'master'.
If there is there is no notes file, do not throw an error.
Avoids error messages when starting knotes on a clean installation.
M +6 -0 migration/kres/knotesmigrator.cpp
http://commits.kde.org/kdepim-runtime/c5ce092db0d82ac475fb3fa611d3376afccd76bc
diff --git a/migration/kres/knotesmigrator.cpp b/migration/kres/knotesmigrator.cpp
index 115f456..d9517c0 100644
--- a/migration/kres/knotesmigrator.cpp
+++ b/migration/kres/knotesmigrator.cpp
@@ -71,6 +71,12 @@ void KNotesMigrator::notesResourceCreated(KJob * job)
QString resourcePath = kresCfg.readEntry( "NotesURL" );
KUrl url(resourcePath);
+ if (!QFile::exists(url.toLocalFile()))
+ {
+ migrationCompleted(m_agentInstance);
+ return;
+ }
+
m_notesResource = new KCal::CalendarLocal(QString());
bool success = m_notesResource->load(url.toLocalFile());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic