[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/libkcal
From: Reinhold Kainhofer <reinhold () kainhofer ! com>
Date: 2004-09-13 22:48:58
Message-ID: 20040913224858.756431D90 () office ! kde ! org
[Download RAW message or body]
CVS commit by kainhofe:
Don't even try to save read-only resources by default. So far, you couldn't edit the \
incidences in these resources, but everything was still written out to disk anew on \
exit. That just didn't make sense and was a waste of resources...
CCMAIL: 87116-done@bugs.kde.org
M +11 -5 resourcecalendar.cpp 1.17
--- kdepim/libkcal/resourcecalendar.cpp #1.16:1.17
@@ -125,4 +125,5 @@ void ResourceCalendar::loadError( const
bool ResourceCalendar::save()
{
+ if ( !readOnly() ) {
kdDebug(5800) << "Save resource " + resourceName() << endl;
@@ -133,4 +134,9 @@ bool ResourceCalendar::save()
return success;
+ } else {
+ // Read-only, just don't save...
+ kdDebug(5800) << "Don't save read-only resource " + resourceName() << endl;
+ return true;
+ }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic