diff options
author | Gustavo Pichorim Boiko <gustavo.boiko@canonical.com> | 2013-10-11 18:00:09 -0300 |
---|---|---|
committer | Gustavo Pichorim Boiko <gustavo.boiko@canonical.com> | 2013-10-11 18:00:09 -0300 |
commit | fa2526b5696b5e3edee8200863cac47fcb26856e (patch) | |
tree | 83088f54690214ea909506ee9c47653f4f769dcc | |
parent | 5ac03ca16f8e675935643d4c82e36eb33815c64d (diff) | |
download | qmenumodel-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.
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 2 |
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); |