Skip to content

Commit

Permalink
[nemo-qml-plugin-systemsettings] Fix crash in OpenVPN file import. Co…
Browse files Browse the repository at this point in the history
…ntributes to JB#37751
  • Loading branch information
Chris Adams committed Aug 4, 2017
1 parent d368c3d commit 0363b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vpnmodel.cpp
Expand Up @@ -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(arguments.at(1));
QString file(arguments.at(0));
if (!file.startsWith(QChar('/'))) {
const QFileInfo info(provisioningFile.fileName());
file = info.dir().absoluteFilePath(file);
Expand Down

0 comments on commit 0363b2e

Please sign in to comment.