From 90b7d00d6e94b0e0940d96a7059b6bd137baf775 Mon Sep 17 00:00:00 2001 From: Johan Smith Agudelo Rodriguez 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();