-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGuiMain.cpp
44 lines (35 loc) · 1.04 KB
/
GuiMain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Copyright (C) 2012 Rajendran Thirupugalsamy
* See LICENSE for full copyright and license information.
* See COPYING for distribution information.
*/
#include <QApplication>
#include <QDir>
#include "GuiMainWindow.h"
#include "GuiTerminalWindow.h"
#include "GuiSettingsWindow.h"
#ifdef QUTTY_ENABLE_BREAKPAD_SUPPORT
#include "client/windows/handler/exception_handler.h"
#endif
int main(int argc, char *argv[])
{
QDir dumps_dir(QDir::home().filePath("qutty/dumps"));
if (!dumps_dir.exists()) {
dumps_dir.mkpath(".");
}
#ifdef QUTTY_ENABLE_BREAKPAD_SUPPORT
new google_breakpad::ExceptionHandler(
dumps_dir.path().toStdWString(),
NULL,
NULL,
NULL,
google_breakpad::ExceptionHandler::HANDLER_ALL);
#endif
QApplication app(argc, argv);
// restore all settings from qutty.xml
qutty_config.restoreConfig();
GuiMainWindow *mainWindow = new GuiMainWindow();
mainWindow->on_openNewTab();
mainWindow->show();
return app.exec();
}