|
a/src/qtgui/recollmain.ui.h |
|
b/src/qtgui/recollmain.ui.h |
|
... |
|
... |
246 |
int reldocnum = par - 1;
|
246 |
int reldocnum = par - 1;
|
247 |
if (!rcldb->getDoc(reslist_winfirst + reldocnum, doc, 0))
|
247 |
if (!rcldb->getDoc(reslist_winfirst + reldocnum, doc, 0))
|
248 |
return;
|
248 |
return;
|
249 |
|
249 |
|
250 |
// Look for appropriate viewer
|
250 |
// Look for appropriate viewer
|
251 |
string cmd = getMimeViewer(doc.mimetype, rclconfig->getMimeConf());
|
251 |
string cmd = rclconfig->getMimeViewerDef(doc.mimetype);
|
252 |
if (cmd.length() == 0) {
|
252 |
if (cmd.length() == 0) {
|
253 |
QMessageBox::warning(0, "Recoll",
|
253 |
QMessageBox::warning(0, "Recoll",
|
254 |
tr("No external viewer configured for mime type ")
|
254 |
tr("No external viewer configured for mime type ")
|
255 |
+ doc.mimetype.c_str());
|
255 |
+ doc.mimetype.c_str());
|
256 |
return;
|
256 |
return;
|
|
... |
|
... |
407 |
|
407 |
|
408 |
gotone = true;
|
408 |
gotone = true;
|
409 |
|
409 |
|
410 |
string img_name;
|
410 |
string img_name;
|
411 |
if (showicons) {
|
411 |
if (showicons) {
|
412 |
string iconname = getMimeIconName(doc.mimetype,
|
412 |
string iconname = rclconfig->getMimeIconName(doc.mimetype);
|
413 |
rclconfig->getMimeConf());
|
|
|
414 |
if (iconname.empty())
|
413 |
if (iconname.empty())
|
415 |
iconname = "document";
|
414 |
iconname = "document";
|
416 |
string imgfile = iconsdir + "/" + iconname + ".png";
|
415 |
string imgfile = iconsdir + "/" + iconname + ".png";
|
417 |
|
416 |
|
418 |
LOGDEB1(("Img file; %s\n", imgfile.c_str()));
|
417 |
LOGDEB1(("Img file; %s\n", imgfile.c_str()));
|