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.52 2006-10-11 14:16:26 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.53 2006-11-30 13:38:44 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
...
...
268
    //    }
268
    //    }
269
#else
269
#else
270
    RclMain w;
270
    RclMain w;
271
    mainWindow = &w;
271
    mainWindow = &w;
272
#endif
272
#endif
273
274
    if (prefs.mainwidth > 100) {
273
    QSize s(prefs.mainwidth, prefs.mainheight);
275
  QSize s(prefs.mainwidth, prefs.mainheight);
274
    mainWindow->resize(s);
276
  mainWindow->resize(s);
275
    //    fprintf(stderr, "Main win created\n");
277
    }
276
277
278
278
    mainWindow->sSearch->searchTypCMB->setCurrentItem(prefs.ssearchTyp);
279
    mainWindow->sSearch->searchTypCMB->setCurrentItem(prefs.ssearchTyp);
279
    dbdir = rclconfig->getDbDir();
280
    dbdir = rclconfig->getDbDir();
280
    if (dbdir.empty()) {
281
    if (dbdir.empty()) {
281
    // Note: this will have to be replaced by a call to a
282
    // Note: this will have to be replaced by a call to a