Changeset View
Changeset View
Standalone View
Standalone View
addons/kate-ctags/kate_ctags_plugin.cpp
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Line(s) | 207 | { | |||
---|---|---|---|---|---|
214 | for (int i=0; i<m_confUi.targetList->count(); i++) { | 214 | for (int i=0; i<m_confUi.targetList->count(); i++) { | ||
215 | target = m_confUi.targetList->item(i)->text(); | 215 | target = m_confUi.targetList->item(i)->text(); | ||
216 | if (target.endsWith(QLatin1Char('/')) || target.endsWith(QLatin1Char('\\'))) { | 216 | if (target.endsWith(QLatin1Char('/')) || target.endsWith(QLatin1Char('\\'))) { | ||
217 | target = target.left(target.size() - 1); | 217 | target = target.left(target.size() - 1); | ||
218 | } | 218 | } | ||
219 | targets += target + QLatin1Char(' '); | 219 | targets += target + QLatin1Char(' '); | ||
220 | } | 220 | } | ||
221 | 221 | | |||
222 | QString file = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1String("/katectags"); | 222 | QString file = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("kate/katectags"); | ||
223 | QDir().mkpath(file); | 223 | QDir().mkpath(file); | ||
224 | file += QLatin1String("/common_db"); | 224 | file += QLatin1String("/common_db"); | ||
225 | 225 | | |||
226 | if (targets.isEmpty()) { | 226 | if (targets.isEmpty()) { | ||
227 | QFile::remove(file); | 227 | QFile::remove(file); | ||
228 | return; | 228 | return; | ||
229 | } | 229 | } | ||
230 | 230 | | |||
Show All 27 Lines |