Windows: restable: never encode urls, they are utf-8
This commit is contained in:
parent
ee07e724a2
commit
12dc7d0a66
@ -375,7 +375,9 @@ QVariant RecollModel::data(const QModelIndex& index, int role) const
|
|||||||
|
|
||||||
string data = m_getters[index.column()](colname, doc);
|
string data = m_getters[index.column()](colname, doc);
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
// Special case url, because it may not be utf-8. URL-encode in this case.
|
// Special case url, because it may not be utf-8. URL-encode in this case.
|
||||||
|
// Not on windows, where we always read the paths as Unicode.
|
||||||
if (!colname.compare("url")) {
|
if (!colname.compare("url")) {
|
||||||
int ecnt;
|
int ecnt;
|
||||||
string data1;
|
string data1;
|
||||||
@ -383,6 +385,7 @@ QVariant RecollModel::data(const QModelIndex& index, int role) const
|
|||||||
data = url_encode(data);
|
data = url_encode(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
list<string> lr;
|
list<string> lr;
|
||||||
g_hiliter.plaintorich(data, lr, m_hdata);
|
g_hiliter.plaintorich(data, lr, m_hdata);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user