|
a/src/qtgui/multisave.cpp |
|
b/src/qtgui/multisave.cpp |
|
... |
|
... |
53 |
}
|
53 |
}
|
54 |
string dir((const char *)dirl[0].toLocal8Bit());
|
54 |
string dir((const char *)dirl[0].toLocal8Bit());
|
55 |
LOGDEB2("multiSave: got dir " << (dir) << "\n" );
|
55 |
LOGDEB2("multiSave: got dir " << (dir) << "\n" );
|
56 |
|
56 |
|
57 |
/* Save doc to files in target directory. Issues:
|
57 |
/* Save doc to files in target directory. Issues:
|
58 |
- It is quite common to have docs in the array with the save
|
58 |
- It is quite common to have docs in the array with the same
|
59 |
file names, e.g. all messages in a folder have the save file
|
59 |
file names, e.g. all messages in a folder have the same file
|
60 |
name (the folder's).
|
60 |
name (the folder's).
|
61 |
- There is no warranty that the ipath is going to be acceptable
|
61 |
- There is no warranty that the ipath is going to be acceptable
|
62 |
as a file name or interesting at all. We don't use it.
|
62 |
as a file name or interesting at all. We don't use it.
|
63 |
- We have to make sure the names don't end up too long.
|
63 |
- We have to make sure the names don't end up too long.
|
64 |
|
64 |
|
|
... |
|
... |
129 |
"cancelling."));
|
129 |
"cancelling."));
|
130 |
return;
|
130 |
return;
|
131 |
}
|
131 |
}
|
132 |
// There is still a race condition here, should we care ?
|
132 |
// There is still a race condition here, should we care ?
|
133 |
TempFile temp;// not used
|
133 |
TempFile temp;// not used
|
134 |
if (!FileInterner::idocToFile(temp, fn, theconfig, docs[i])) {
|
134 |
if (!FileInterner::idocToFile(temp, fn, theconfig, docs[i], false)) {
|
135 |
QMessageBox::warning(0, "Recoll",
|
135 |
QMessageBox::warning(0, "Recoll",
|
136 |
QWidget::tr("Cannot extract document: ") +
|
136 |
QWidget::tr("Cannot extract document: ") +
|
137 |
QString::fromLocal8Bit(docs[i].url.c_str()) +
|
137 |
QString::fromLocal8Bit(docs[i].url.c_str()) +
|
138 |
" | " +
|
138 |
" | " +
|
139 |
QString::fromLocal8Bit(docs[i].ipath.c_str())
|
139 |
QString::fromLocal8Bit(docs[i].ipath.c_str())
|