aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/unitymenumodel.cpp
diff options
context:
space:
mode:
authorGustavo Pichorim Boiko <gustavo.boiko@canonical.com>2013-10-11 21:31:21 +0000
committerTarmac <>2013-10-11 21:31:21 +0000
commit867693af1b3453b4ec83591a4bffac889f9503c8 (patch)
tree83088f54690214ea909506ee9c47653f4f769dcc /libqmenumodel/src/unitymenumodel.cpp
parent5ac03ca16f8e675935643d4c82e36eb33815c64d (diff)
parentfa2526b5696b5e3edee8200863cac47fcb26856e (diff)
downloadqmenumodel-867693af1b3453b4ec83591a4bffac889f9503c8.tar.gz
qmenumodel-867693af1b3453b4ec83591a4bffac889f9503c8.tar.bz2
qmenumodel-867693af1b3453b4ec83591a4bffac889f9503c8.zip
Use g_file_get_uri instead of g_file_get_path to make sure the URI's percent encoding is properly kept.
Approved by PS Jenkins bot, Lars Uebernickel.
Diffstat (limited to 'libqmenumodel/src/unitymenumodel.cpp')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 39336ec..71358c4 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -370,7 +370,7 @@ static QString iconUri(GIcon *icon)
if (g_file_is_native (file)) {
gchar *fileuri;
- fileuri = g_file_get_path (file);
+ fileuri = g_file_get_uri (file);
uri = QString(fileuri);
g_free (fileuri);