~ubuntu-branches/ubuntu/trusty/recoll/trusty

« back to all changes in this revision

Viewing changes to qtgui/rclmain_w.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2008-05-29 23:25:40 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080529232540-9kuyznin2g8zmjn9
Tags: 1.10.2-1
* New upstream release
  + Updated patch debian/patches/02_gcc-snapshot-missing-headers-fix.dpatch
    Some portions are now merged with upstream
* debian/copyright:
  + Fixed indentation to 80 characters
  + Updated Debian package copyright year

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef lint
2
 
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.47 2008/01/17 11:15:43 dockes Exp $ (C) 2005 J.F.Dockes";
 
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.48 2008/02/19 08:02:01 dockes Exp $ (C) 2005 J.F.Dockes";
3
3
#endif
4
4
/*
5
5
 *   This program is free software; you can redistribute it and/or modify
353
353
                                         QString::fromAscii(indexingReason.c_str()));
354
354
                }
355
355
            }
356
 
            // Make sure we reopen the db to get the results.
 
356
            // Make sure we reopen the db to get the results. If there
 
357
            // is current search data, we should reset it else things
 
358
            // are inconsistent (ie: applying sort will fail. But we
 
359
            // don't like erasing results while the user may be
 
360
            // looking at them either). Fixing this would be
 
361
            // relatively complicated (keep an open/close gen number
 
362
            // and check this / restart query in DocSeqDb() ?)
357
363
            rcldb->close();
358
364
        }
359
365
    } else {
420
426
// Start a db query and set the reslist docsource
421
427
void RclMain::startSearch(RefCntr<Rcl::SearchData> sdata)
422
428
{
423
 
    LOGDEB(("RclMain::startSearch\n"));
 
429
    LOGDEB(("RclMain::startSearch. Indexing %s\n", 
 
430
            indexingstatus == IDXTS_NULL?"on":"off"));
424
431
    // The db may have been closed at the end of indexing
425
432
    string reason;
426
433
    // If indexing is being performed, we reopen the db at each query.
464
471
 
465
472
void RclMain::setDocSequence()
466
473
{
467
 
    if (m_searchData.getcnt() == 0)
 
474
    if (m_searchData.getcnt() == 0) {
 
475
        // Null refcntr ?? No current search data 
468
476
        return;
 
477
    }
469
478
    RefCntr<DocSequence> docsource;
470
479
    if (m_sortspecs.sortwidth > 0) {
471
480
        docsource = RefCntr<DocSequence>(new DocSeqSorted(m_docSource,