Commit 8cbd2102 authored by Albert Astals Cid's avatar Albert Astals Cid

Merge remote-tracking branch 'origin/Applications/16.12'

parents e35f8dc7 da31b6eb
......@@ -87,13 +87,12 @@ void VocabEdit::slotSave()
doc->lesson()->appendEntry(&m_vocabList[i]);
}
QString fileName = txtVocabName->text().toLower().remove(' ') + ".kvtml";
QString path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
"/kvtml/" + KanagramSettings::dataLanguage();
const QString fileName = txtVocabName->text().toLower().remove(' ') + ".kvtml";
const QString path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
"/apps/kvtml/" + KanagramSettings::dataLanguage();
QDir dir;
dir.mkpath(path);
QUrl url =
QUrl::fromLocalFile(path +
const QUrl url = QUrl::fromLocalFile(path +
QLatin1Char('/') + fileName);
qCDebug(KANAGRAM) << "Saving file as " << url;
doc->saveAs(url, KEduVocDocument::Automatic);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment