~ubuntu-branches/ubuntu/oneiric/kde4libs/oneiric-security

« back to all changes in this revision

Viewing changes to kio/kio/ksambashare.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-03-21 16:53:09 UTC
  • Revision ID: package-import@ubuntu.com-20110321165309-aia4aoi5epkk5qnz
Tags: 4:4.6.1-0ubuntu3
Update kubuntu_77_ksambashare.diff don't crash if no KDirWatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
440
440
KSambaShare::~KSambaShare()
441
441
{
442
442
    Q_D(const KSambaShare);
443
 
    if (KDirWatch::self()->contains(d->userSharePath)) {
444
 
        KDirWatch::self()->removeDir(d->userSharePath);
 
443
    if (KDirWatch::exists()) {
 
444
      if (KDirWatch::self()->contains(d->userSharePath)) {
 
445
          KDirWatch::self()->removeDir(d->userSharePath);
 
446
      }
445
447
    }
446
448
    delete d_ptr;
447
449
}