]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/main.cpp
Rename Local Storage to DOM Storage. https://redmine.stoutner.com/issues/852
[PrivacyBrowserPC.git] / src / main.cpp
index bf2e23f898fc17f0e744df8f797d626b91554692..6aa5c51a28c3eaf9c5aa443cd92667a5aa31a17c 100644 (file)
@@ -18,7 +18,8 @@
  */
 
 // Application headers.
-#include "BrowserWindow.h"
+#include "helpers/DomainsDatabaseHelper.h"
+#include "windows/BrowserWindow.h"
 
 // KDE Frameworks headers.
 #include <KAboutData>
@@ -53,7 +54,8 @@ int main(int argc, char *argv[])
     aboutData.setCopyrightStatement(i18n("Copyright © 2016-2017,2021-2022 Soren Stoutner <soren@stoutner.com>"));
     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);  <https://redmine.stoutner.com/issues/822>
+    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();