X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fmain.cpp;h=10ce579ca39829f90c6046fcc0ca560483aaa087;hb=b105f2cce889a132faa9d7a5cdc8505b75965321;hp=80909e284a603b7b28904abe08118db25cd1a3bc;hpb=8e2e267828a6fbd7ed9950204c50a100e3f413fa;p=PrivacyBrowserPC.git diff --git a/src/main.cpp b/src/main.cpp index 80909e2..10ce579 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,9 @@ */ // Application headers. -#include "browserwindow.h" +#include "databases/CookiesDatabase.h" +#include "databases/DomainsDatabase.h" +#include "windows/BrowserWindow.h" // KDE Frameworks headers. #include @@ -53,7 +55,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 +81,12 @@ 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 databases. + DomainsDatabase::addDatabase(); + CookiesDatabase::addDatabase(); + // Create the main window. - BrowserWindow *browserWindowPointer = new BrowserWindow; + BrowserWindow *browserWindowPointer = new BrowserWindow(); // Show the main window. browserWindowPointer->show();