X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=6aa5c51a28c3eaf9c5aa443cd92667a5aa31a17c;hp=bf2e23f898fc17f0e744df8f797d626b91554692;hb=2facce32fb6d97b52a7dc148044cae4b36a65d4c;hpb=05800bafb963a10f291d2a9604dc90cd7ac37c7b diff --git a/src/main.cpp b/src/main.cpp index bf2e23f..6aa5c51 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,8 @@ */ // Application headers. -#include "BrowserWindow.h" +#include "helpers/DomainsDatabaseHelper.h" +#include "windows/BrowserWindow.h" // KDE Frameworks headers. #include @@ -53,7 +54,8 @@ int main(int argc, char *argv[]) aboutData.setCopyrightStatement(i18n("Copyright © 2016-2017,2021-2022 Soren Stoutner ")); aboutData.setDesktopFileName(QStringLiteral("com.stoutner.privacybrowser")); aboutData.setHomepage(QStringLiteral("https://www.stoutner.com/privacy-browser-pc/")); - aboutData.setLicenseTextFile(":/licenses/GPLv3+.txt"); + //aboutData.setLicense(KAboutLicense::GPL_V3, KAboutLicense::OrLaterVersions); + aboutData.setLicenseTextFile(QStringLiteral(":/licenses/GPLv3+.txt")); aboutData.setOrganizationDomain("stoutner.com"); aboutData.setShortDescription(i18n("A web browser that respects your privacy.")); @@ -78,8 +80,11 @@ int main(int argc, char *argv[]) // Register with D-Bus, allowing multiple instances and allowing the program to run if for some reason the registration fails. KDBusService appDBusService(KDBusService::Multiple | KDBusService::NoExitOnFailure); + // Add the domains database. + DomainsDatabaseHelper::addDatabase(); + // Create the main window. - BrowserWindow *browserWindowPointer = new BrowserWindow; + BrowserWindow *browserWindowPointer = new BrowserWindow(); // Show the main window. browserWindowPointer->show();