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.38 2006-03-29 17:31:55 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.39 2006-04-04 07:55:29 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
...
...
155
155
156
    string reason;
156
    string reason;
157
    rclconfig = recollinit(recollCleanup, sigcleanup, reason);
157
    rclconfig = recollinit(recollCleanup, sigcleanup, reason);
158
    if (!rclconfig || !rclconfig->ok()) {
158
    if (!rclconfig || !rclconfig->ok()) {
159
    QString msg = app.translate("Main", "Configuration problem: ");
159
    QString msg = app.translate("Main", "Configuration problem: ");
160
  msg += reason;
160
  msg += QString::fromUtf8(reason.c_str());
161
    QMessageBox::critical(0, "Recoll",  msg);
161
    QMessageBox::critical(0, "Recoll",  msg);
162
    exit(1);
162
    exit(1);
163
    }
163
    }
164
164
165
    // Create main window and set its size to previous session's
165
    // Create main window and set its size to previous session's
...
...
217
        question
217
        question
218
#else
218
#else
219
        information
219
        information
220
#endif
220
#endif
221
        (0, "Recoll",
221
        (0, "Recoll",
222
          app.translate("Main", "Could not open database in ")+
222
         app.translate("Main", "Could not open database in ") +
223
           QString(dbdir) +
223
       QString::fromLocal8Bit(dbdir.c_str()) +
224
          app.translate("Main", 
224
         app.translate("Main", 
225
                   ".\n"
225
                   ".\n"
226
                   "Click Cancel if you want to edit the configuration file before indexation starts, or Ok to let it proceed."),
226
                   "Click Cancel if you want to edit the configuration file before indexation starts, or Ok to let it proceed."),
227
                    "Ok",
227
       "Ok",
228
                    "Cancel", 0, 0, 1 )) {
228
         "Cancel", 0, 0, 1 )) {
229
    case 0: // Ok
229
    case 0: // Ok
230
        break;
230
        break;
231
    case 1: // Cancel
231
    case 1: // Cancel
232
        exit(0);
232
        exit(0);
233
    }
233
    }