~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to kalarm/alarmcalendar.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
                        // The calendar file doesn't yet exist, or it's zero length, so create a new one
229
229
                        bool created = false;
230
230
                        if (mICalUrl.isLocalFile())
231
 
                                created = saveCal(mICalUrl.path());
 
231
                                created = saveCal(mICalUrl.toLocalFile());
232
232
                        else
233
233
                        {
234
234
                                KTemporaryFile tmpFile;
347
347
                kDebug() << "\"" << newFile << "\"," << mEventType;
348
348
                QString saveFilename = newFile.isNull() ? mLocalFile : newFile;
349
349
                if (mCalType == LOCAL_VCAL  &&  newFile.isNull()  &&  mUrl.isLocalFile())
350
 
                        saveFilename = mICalUrl.path();
 
350
                        saveFilename = mICalUrl.toLocalFile();
351
351
                if (!static_cast<CalendarLocal*>(mCalendar)->save(saveFilename, new ICalFormat))
352
352
                {
353
353
                        kError() << "Saving" << saveFilename << "failed.";
573
573
        bool local = url.isLocalFile();
574
574
        if (local)
575
575
        {
576
 
                filename = url.path();
 
576
                filename = url.toLocalFile();
577
577
                if (!KStandardDirs::exists(filename))
578
578
                {
579
579
                        kDebug() << "File '" << url.prettyUrl() <<"' not found";
1045
1045
        return 0;
1046
1046
}
1047
1047
 
1048
 
 
 
1048
 
1049
1049
/******************************************************************************
1050
1050
* Delete the specified event from the calendar, if it exists.
1051
1051
* The calendar is then optionally saved.