[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kroupware_branch: kdepim/korganizer
From:       Steffen Hansen <hansen () kde ! org>
Date:       2003-06-16 9:56:51
[Download RAW message or body]

CVS commit by steffen: 

fix for #315


  M +9 -1      kogroupware.cpp   1.1.2.22


--- kdepim/korganizer/kogroupware.cpp  #1.1.2.21:1.1.2.22
@@ -673,5 +673,11 @@ void KOGroupware::publishFreeBusy()
       targetURL.setProtocol( "webdavs" );
       targetURL.setHost( server );
-      targetURL.setPath( "/freebusy/" + KOPrefs::instance()->mPublishUserName + ".vfb" );
+
+      QString fbname = KOPrefs::instance()->mPublishUserName;
+      int at = fbname.find('@');
+      if( at > 1 && fbname.length() > (uint)at ) {
+        fbname = fbname.left(at);
+      }
+      targetURL.setPath( "/freebusy/" + fbname + ".vfb" );
       targetURL.setUser( KOPrefs::instance()->mPublishUserName );
       targetURL.setPass( KOPrefs::instance()->mPublishPassword );
@@ -739,4 +745,6 @@ void FBDownloadJob::slotResult( KIO::Job
   FreeBusy* fb = mKogroupware->parseFreeBusy( mFBData );
   emit fbDownloaded( mEmail, fb );
+  // PENDING(steffen): Is this safe?
+  //job->deleteLater();
   delete this;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic