17
17
#include <QtGui/QApplication>
19
#include <dialogs/CFirstStartWizard.h>
19
20
#include <main/CTrayIcon.h>
20
21
#include <util/defaults.h>
22
#include <util/settings.h>
22
24
int main(int argc, char *argv[])
24
26
QApplication a(argc, argv);
25
27
a.setQuitOnLastWindowClosed(false);
27
// Set information about the application
29
/* Set information about the application. */
28
30
a.setApplicationName("NitroShare");
29
31
a.setOrganizationName("Nathan Osman");
30
32
a.setOrganizationDomain("quickmediasolutions.com");
32
// Load the application defaults
34
/* Load the application defaults. */
37
/* If this is the first time the application is started, display
38
the initial setup and configuration wizard. */
39
if(!Settings::Get("Internal/FirstStart").toBool())
41
if(!CFirstStartWizard().exec())
44
/* If we reach this point, the user completed the wizard and
45
we should avoid showing it in the future. */
46
Settings::Set("Internal/FirstStart", true);