aboutsummaryrefslogtreecommitdiff
path: root/autotests/kdesktopfiletest.h
diff options
context:
space:
mode:
authorWolfgang Bauer <wbauer@tmo.at>2017-04-25 23:37:11 +0200
committerWolfgang Bauer <wbauer@tmo.at>2017-04-25 23:37:11 +0200
commit3ad00c4e56eb9fe6ea7386f8ca1db6e15c26ac11 (patch)
treee746c2ebd422c36d2f551bc590d160c2be02426d /autotests/kdesktopfiletest.h
parente56d8e55d35ebf6ab66a58000dc19dd863d7ad58 (diff)
downloadkconfig-3ad00c4e56eb9fe6ea7386f8ca1db6e15c26ac11.tar.gz
kconfig-3ad00c4e56eb9fe6ea7386f8ca1db6e15c26ac11.tar.bz2
Fix relativePath calculation in KDesktopFile::locateLocal()
The "dir" and "path" variables were obviously swapped here by mistake. This resulted in the relativePath always being empty, and made the function return "~/.local/share/" (or "~/.config/") instead of the correct path. BUG: 345100 FIXED-IN: 5.34.0 Differential Revision: https://phabricator.kde.org/D5502
Diffstat (limited to 'autotests/kdesktopfiletest.h')
-rw-r--r--autotests/kdesktopfiletest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/autotests/kdesktopfiletest.h b/autotests/kdesktopfiletest.h
index eb0bd1df..ed6679a2 100644
--- a/autotests/kdesktopfiletest.h
+++ b/autotests/kdesktopfiletest.h
@@ -34,6 +34,8 @@ private Q_SLOTS:
void testActionGroup();
void testIsAuthorizedDesktopFile();
void testTryExecWithAuthorizeAction();
+ void testLocateLocal_data();
+ void testLocateLocal();
};