]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/commitdiff
Display Unicode URLs in Punycode. https://redmine.stoutner.com/issues/1108
authorSoren Stoutner <soren@stoutner.com>
Fri, 27 Oct 2023 20:23:20 +0000 (13:23 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 27 Oct 2023 20:23:20 +0000 (13:23 -0700)
doc/index.docbook
doc/privacybrowser-window.png
src/windows/BrowserWindow.cpp

index bc649d5984dff3672d5eefe07f1b0729e1236b66..d0611633d73afac75515ad5b03f7461b589a40d4 100644 (file)
 
         <!-- Version 0.5. -->
         <sect1 id="version_0.5">
-            <title>0.5 - 12 October 2023</title>
+            <title><ulink url="https://www.stoutner.com/privacy-browser-pc-0-5/">0.5</ulink> -
+                <ulink url="https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=commitdiff;h=a385ca128cb7bcc34ab5467edf21eb5e5664471a;ds=sidebyside">12 October 2023</ulink></title>
 
             <itemizedlist>
                 <listitem><para>Add <ulink url="https://redmine.stoutner.com/issues/968">bookmarks</ulink>.</para></listitem>
index dce02815092ec257a9f8b80ed63e18da8f6d6a14..e753474ed7b020d0108343f26845b5f9c5d680cd 100644 (file)
Binary files a/doc/privacybrowser-window.png and b/doc/privacybrowser-window.png differ
index 8f8a0b0d78bfaec352cf3b2a44d2fbf9b0de3cbb..8382e0085806359ba141d0e34cc0d8dba820cddf 100644 (file)
@@ -226,7 +226,7 @@ BrowserWindow::BrowserWindow(bool firstWindow, QString *initialUrlStringPointer)
     searchEngineCustomActionPointer->setIcon(QIcon::fromTheme(QLatin1String("edit-find")));
     zoomFactorActionPointer->setIcon(QIcon::fromTheme(QLatin1String("zoom-fit-best")));
     editBookmarksActionPointer->setIcon(QIcon::fromTheme(QLatin1String("bookmark-edit"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
-    viewBookmarksToolBarActionPointer->setIcon(QIcon::fromTheme(QLatin1String("bookmarks")));
+    viewBookmarksToolBarActionPointer->setIcon(QIcon::fromTheme(QLatin1String("bookmarks"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
     domainSettingsActionPointer->setIcon(QIcon::fromTheme(QLatin1String("settings-configure"), QIcon::fromTheme(QLatin1String("preferences-desktop"))));
     cookiesActionPointer->setIcon(QIcon::fromTheme(QLatin1String("preferences-web-browser-cookies"), QIcon::fromTheme(QLatin1String("appointment-new"))));
     findCaseSensitiveActionPointer->setIcon(QIcon::fromTheme(QLatin1String("format-text-lowercase"), QIcon::fromTheme(QLatin1String("/usr/share/icons/gnome/32x32/apps/fonts.png"))));
@@ -1968,8 +1968,8 @@ void BrowserWindow::updateSearchEngineLabel(const QString &searchEngineString) c
 
 void BrowserWindow::updateUrlLineEdit(const QUrl &newUrl)
 {
-    // Get the new URL string.
-    QString newUrlString = newUrl.toString();
+    // Get the new URL string in encoded form, which displays punycode.
+    QString newUrlString = newUrl.toEncoded();
 
     // Update the view source actions.
     if (newUrlString.startsWith(QLatin1String("view-source:")))  // The source is currently being viewed.