|
a/src/qtgui/restable.cpp |
|
b/src/qtgui/restable.cpp |
|
... |
|
... |
673 |
QString s =
|
673 |
QString s =
|
674 |
QFileDialog::getSaveFileName(this, //parent
|
674 |
QFileDialog::getSaveFileName(this, //parent
|
675 |
tr("Save table to CSV file"),
|
675 |
tr("Save table to CSV file"),
|
676 |
QString::fromLocal8Bit(path_home().c_str())
|
676 |
QString::fromLocal8Bit(path_home().c_str())
|
677 |
);
|
677 |
);
|
|
|
678 |
if (s.isEmpty())
|
|
|
679 |
return;
|
678 |
const char *tofile = s.toLocal8Bit();
|
680 |
const char *tofile = s.toLocal8Bit();
|
679 |
FILE *fp = fopen(tofile, "w");
|
681 |
FILE *fp = fopen(tofile, "w");
|
680 |
if (fp == 0) {
|
682 |
if (fp == 0) {
|
681 |
QMessageBox::warning(0, "Recoll",
|
683 |
QMessageBox::warning(0, "Recoll",
|
682 |
tr("Can't open/create file: ") + s);
|
684 |
tr("Can't open/create file: ") + s);
|