|
a/src/qtgui/advsearch_w.cpp |
|
b/src/qtgui/advsearch_w.cpp |
|
... |
|
... |
332 |
}
|
332 |
}
|
333 |
|
333 |
|
334 |
void AdvSearch::browsePB_clicked()
|
334 |
void AdvSearch::browsePB_clicked()
|
335 |
{
|
335 |
{
|
336 |
QString dir = myGetFileName(true);
|
336 |
QString dir = myGetFileName(true);
|
|
|
337 |
#ifdef _WIN32
|
|
|
338 |
string s = qs2utf8s(dir);
|
|
|
339 |
for (string::size_type i = 0; i < s.size(); i++) {
|
|
|
340 |
if (s[i] == '\\') {
|
|
|
341 |
s[i] = '/';
|
|
|
342 |
}
|
|
|
343 |
}
|
|
|
344 |
if (s.size() >= 2 && isalpha(s[0]) && s[1] == ':') {
|
|
|
345 |
s.erase(1,1);
|
|
|
346 |
s = string("/") + s;
|
|
|
347 |
}
|
|
|
348 |
dir = u8s2qs(s);
|
|
|
349 |
#endif
|
337 |
subtreeCMB->setEditText(dir);
|
350 |
subtreeCMB->setEditText(dir);
|
338 |
}
|
351 |
}
|
339 |
|
352 |
|
340 |
size_t AdvSearch::stringToSize(QString qsize)
|
353 |
size_t AdvSearch::stringToSize(QString qsize)
|
341 |
{
|
354 |
{
|