~ubuntu-branches/ubuntu/wily/ubuntu-system-settings-online-accounts/wily

« back to all changes in this revision

Viewing changes to click-hooks/main.cpp

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-08-04 09:05:45 UTC
  • mfrom: (1.1.53)
  • Revision ID: package-import@ubuntu.com-20150804090545-ddapik19edc12vdh
Tags: 0.6+15.10.20150804-0ubuntu1
Resync trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
            /* Check that the hook file is still there; if it isn't, then it
258
258
             * means that the click package was removed, and we must remove our
259
259
             * copy as well. */
260
 
            QString hookFileName = profile + "." + fileType;
261
 
            if (hooksDirIn.exists(hookFileName)) continue;
 
260
            QString hookFileName = stripVersion(profile) + "_*." + fileType;
 
261
            QStringList nameFilters = QStringList() << hookFileName;
 
262
            if (!hooksDirIn.entryList(nameFilters).isEmpty()) continue;
262
263
 
263
264
            QFile::remove(fileInfo.filePath());
264
265
            /* If this is a provider, we must also remove any accounts