Commit 0363b2e2 authored by chriadam's avatar chriadam

[nemo-qml-plugin-systemsettings] Fix crash in OpenVPN file import. Contributes to JB#37751

parent d368c3d0
......@@ -994,7 +994,7 @@ QVariantMap VpnModel::processOpenVpnProvisioningFile(QFile &provisioningFile)
directive == QStringLiteral("auth-user-pass")) {
if (!arguments.isEmpty()) {
// If these file paths are not absolute, assume they are in the same directory as the provisioning file
QString file(;
QString file(;
if (!file.startsWith(QChar('/'))) {
const QFileInfo info(provisioningFile.fileName());
file = info.dir().absoluteFilePath(file);
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