|
a/src/qtgui/rclmain_w.cpp |
|
b/src/qtgui/rclmain_w.cpp |
|
... |
|
... |
16 |
*/
|
16 |
*/
|
17 |
#include "autoconfig.h"
|
17 |
#include "autoconfig.h"
|
18 |
|
18 |
|
19 |
#include <utility>
|
19 |
#include <utility>
|
20 |
#include MEMORY_INCLUDE
|
20 |
#include MEMORY_INCLUDE
|
|
|
21 |
#include <stdlib.h>
|
21 |
|
22 |
|
22 |
#include <qapplication.h>
|
23 |
#include <qapplication.h>
|
23 |
#include <qmessagebox.h>
|
24 |
#include <qmessagebox.h>
|
24 |
#include <qfiledialog.h>
|
25 |
#include <qfiledialog.h>
|
25 |
#include <qshortcut.h>
|
26 |
#include <qshortcut.h>
|
|
... |
|
... |
685 |
if (asearchform)
|
686 |
if (asearchform)
|
686 |
delete asearchform;
|
687 |
delete asearchform;
|
687 |
|
688 |
|
688 |
rwSettings(true);
|
689 |
rwSettings(true);
|
689 |
|
690 |
|
690 |
// Let the exit handler clean up the rest (internal recoll stuff).
|
691 |
// We should do the right thing and let exit() call all the
|
|
|
692 |
// cleanup handlers. But we have few persistent resources and qt
|
|
|
693 |
// exit is a great source of crashes and pita. So do our own
|
|
|
694 |
// cleanup:
|
|
|
695 |
deleteAllTempFiles();
|
|
|
696 |
// and scram out
|
691 |
exit(0);
|
697 |
_Exit(0);
|
692 |
}
|
698 |
}
|
693 |
|
699 |
|
694 |
// Start a db query and set the reslist docsource
|
700 |
// Start a db query and set the reslist docsource
|
695 |
void RclMain::startSearch(STD_SHARED_PTR<Rcl::SearchData> sdata, bool issimple)
|
701 |
void RclMain::startSearch(STD_SHARED_PTR<Rcl::SearchData> sdata, bool issimple)
|
696 |
{
|
702 |
{
|