Switch to unified view

a/src/qtgui/rclmain.cpp b/src/qtgui/rclmain.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.18 2006-04-04 07:55:29 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.19 2006-04-04 13:49:55 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
209
// thread and a possible need to exit
209
// thread and a possible need to exit
210
void RclMain::periodic100()
210
void RclMain::periodic100()
211
{
211
{
212
    static int toggle = 0;
212
    static int toggle = 0;
213
    // Check if indexing thread done
213
    // Check if indexing thread done
214
    if (indexingstatus) {
214
    if (indexingstatus != IDXTS_NULL) {
215
    statusBar()->message("");
215
    statusBar()->message("");
216
  indexingstatus = false;
216
  if (indexingstatus != IDXTS_OK) {
217
      indexingstatus = IDXTS_NULL;
218
      QMessageBox::warning(0, "Recoll", 
219
               QString::fromAscii(indexingReason.c_str()));
220
  }
221
  indexingstatus = IDXTS_NULL;
217
    // Make sure we reopen the db to get the results.
222
    // Make sure we reopen the db to get the results.
218
    LOGINFO(("Indexing done: closing query database\n"));
223
    LOGINFO(("Indexing done: closing query database\n"));
219
    rcldb->close();
224
    rcldb->close();
220
    } else if (indexingdone == 0) {
225
    } else if (indexingdone == 0) {
221
    if (toggle == 0) {
226
    if (toggle == 0) {
...
...
238
    fileExit();
243
    fileExit();
239
}
244
}
240
245
241
void RclMain::fileStart_IndexingAction_activated()
246
void RclMain::fileStart_IndexingAction_activated()
242
{
247
{
243
    if (indexingdone == 1)
248
    if (indexingdone)
244
    startindexing = 1;
249
    startindexing = 1;
245
}
250
}
246
251
247
// Note that all our 'urls' are like : file://...
252
// Note that all our 'urls' are like : file://...
248
static string urltolocalpath(string url)
253
static string urltolocalpath(string url)