Changeset View
Changeset View
Standalone View
Standalone View
resources/tomboynotes/tomboynotesresource.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | |||||
72 | { | 72 | { | ||
73 | qCDebug(TOMBOYNOTESRESOURCE_LOG) << "Retrieving collections started"; | 73 | qCDebug(TOMBOYNOTESRESOURCE_LOG) << "Retrieving collections started"; | ||
74 | 74 | | |||
75 | if (configurationNotValid()) { | 75 | if (configurationNotValid()) { | ||
76 | cancelTask(i18n("Resource configuration is not valid")); | 76 | cancelTask(i18n("Resource configuration is not valid")); | ||
77 | return; | 77 | return; | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | auto job = new TomboyCollectionsDownloadJob(Settings::collectionName(), mManager, this); | 80 | int refreshInterval = Settings::self()->refreshInterval(); | ||
81 | if (refreshInterval == 0) { | ||||
dvratil: Wrong indentation | |||||
82 | refreshInterval = -1; | ||||
83 | } | ||||
84 | | ||||
85 | auto job = new TomboyCollectionsDownloadJob(Settings::collectionName(), mManager, refreshInterval, this); | ||||
81 | job->setAuthentication(Settings::requestToken(), Settings::requestTokenSecret()); | 86 | job->setAuthentication(Settings::requestToken(), Settings::requestTokenSecret()); | ||
82 | job->setServerURL(Settings::serverURL(), Settings::userURL()); | 87 | job->setServerURL(Settings::serverURL(), Settings::userURL()); | ||
83 | // connect to its result() signal | 88 | // connect to its result() signal | ||
84 | connect(job, &KJob::result, this, &TomboyNotesResource::onCollectionsRetrieved); | 89 | connect(job, &KJob::result, this, &TomboyNotesResource::onCollectionsRetrieved); | ||
85 | job->start(); | 90 | job->start(); | ||
86 | qCDebug(TOMBOYNOTESRESOURCE_LOG) << "Retriving collections job started"; | 91 | qCDebug(TOMBOYNOTESRESOURCE_LOG) << "Retriving collections job started"; | ||
87 | } | 92 | } | ||
88 | 93 | | |||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |
Wrong indentation