Switch to unified view

a/src/qtgui/main.cpp b/src/qtgui/main.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.20 2005-11-28 15:31:01 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.21 2005-12-05 14:57:54 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
4
5
#include <unistd.h>
5
#include <unistd.h>
6
6
7
#include <qapplication.h>
7
#include <qapplication.h>
...
...
184
    w.connect(timer, SIGNAL(timeout()), &w, SLOT(periodic100()));
184
    w.connect(timer, SIGNAL(timeout()), &w, SLOT(periodic100()));
185
    timer->start(100);
185
    timer->start(100);
186
186
187
    if (!rcldb || !rcldb->open(dbdir, Rcl::Db::DbRO)) {
187
    if (!rcldb || !rcldb->open(dbdir, Rcl::Db::DbRO)) {
188
    startindexing = 1;
188
    startindexing = 1;
189
  QMessageBox::information(0, "Recoll",
189
  switch (QMessageBox::
190
      question(0, "Recoll",
191
           a.translate("Main", "Could not open database in ")+
192
           QString(dbdir) +
190
              a.translate("Main", 
193
             a.translate("Main", 
191
                       "Could not open database in ") + 
194
                   ".\n"
192
               QString(dbdir) + 
195
                   "Click Cancel if you want to edit the configuration file before indexation starts, or Ok to let it proceed."),
193
               a.translate("Main",
196
                    "Ok",
194
                       ". Starting indexation"));
197
                    "Cancel", 0, 0, 1 )) {
198
  case 0: // Ok
199
      break;
200
  case 1: // Cancel
201
      exit(0);
202
  }
195
    }
203
    }
196
204
197
    start_idxthread(rclconfig);
205
    start_idxthread(rclconfig);
198
206
199
    // Let's go
207
    // Let's go