aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorGustavo Pichorim Boiko <gustavo.boiko@canonical.com>2013-10-11 18:00:09 -0300
committerGustavo Pichorim Boiko <gustavo.boiko@canonical.com>2013-10-11 18:00:09 -0300
commitfa2526b5696b5e3edee8200863cac47fcb26856e (patch)
tree83088f54690214ea909506ee9c47653f4f769dcc /libqmenumodel
parent5ac03ca16f8e675935643d4c82e36eb33815c64d (diff)
downloadqmenumodel-fa2526b5696b5e3edee8200863cac47fcb26856e.tar.gz
qmenumodel-fa2526b5696b5e3edee8200863cac47fcb26856e.tar.bz2
qmenumodel-fa2526b5696b5e3edee8200863cac47fcb26856e.zip
Use g_file_get_uri instead of g_file_get_path to make sure the URI's percent
encoding is properly kept.
Diffstat (limited to 'libqmenumodel')
-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);