From 443502d3e0e5cf6286ab4c3f7d95b556300456ff Mon Sep 17 00:00:00 2001 From: audoban Date: Thu, 23 Mar 2017 18:47:23 -0500 Subject: [PATCH] fix #316, Exporting settings - Adding a dot in the filename --- app/globalsettings.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/globalsettings.cpp b/app/globalsettings.cpp index 946e09f7c..5cceb8c64 100644 --- a/app/globalsettings.cpp +++ b/app/globalsettings.cpp @@ -340,10 +340,8 @@ void GlobalSettings::exportConfiguration() notification->setText(i18nc("import/export config", "Configuration exported successfully")); connect(notification, &KNotification::action1Activated - , this, [&file]() { - QDir path(file); - path.cdUp(); - QDesktopServices::openUrl({path.absolutePath()}); + , this, [file]() { + QDesktopServices::openUrl({QFileInfo(file).canonicalPath()}); }); notification->sendEvent();