|
a/src/qtgui/advsearch_w.cpp |
|
b/src/qtgui/advsearch_w.cpp |
|
... |
|
... |
339 |
size_t AdvSearch::stringToSize(QString qsize)
|
339 |
size_t AdvSearch::stringToSize(QString qsize)
|
340 |
{
|
340 |
{
|
341 |
size_t size = size_t(-1);
|
341 |
size_t size = size_t(-1);
|
342 |
qsize.replace(QRegExp("[\\s]+"), "");
|
342 |
qsize.replace(QRegExp("[\\s]+"), "");
|
343 |
if (!qsize.isEmpty()) {
|
343 |
if (!qsize.isEmpty()) {
|
344 |
string csize((const char*)qsize.toAscii());
|
344 |
string csize(qs2utf8s(qsize));
|
345 |
char *cp;
|
345 |
char *cp;
|
346 |
size = strtoll(csize.c_str(), &cp, 10);
|
346 |
size = strtoll(csize.c_str(), &cp, 10);
|
347 |
if (*cp != 0) {
|
347 |
if (*cp != 0) {
|
348 |
switch (*cp) {
|
348 |
switch (*cp) {
|
349 |
case 'k': case 'K': size *= 1E3;break;
|
349 |
case 'k': case 'K': size *= 1E3;break;
|