From: Soren Stoutner Date: Fri, 27 Oct 2023 20:23:20 +0000 (-0700) Subject: Display Unicode URLs in Punycode. https://redmine.stoutner.com/issues/1108 X-Git-Tag: v0.6~25 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=48750feae0c2e079a3b449e12b5870dde82aa229;p=PrivacyBrowserPC.git Display Unicode URLs in Punycode. https://redmine.stoutner.com/issues/1108 --- diff --git a/doc/index.docbook b/doc/index.docbook index bc649d5..d061163 100644 --- a/doc/index.docbook +++ b/doc/index.docbook @@ -1663,7 +1663,8 @@ - 0.5 - 12 October 2023 + <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> Add bookmarks. diff --git a/doc/privacybrowser-window.png b/doc/privacybrowser-window.png index dce0281..e753474 100644 Binary files a/doc/privacybrowser-window.png and b/doc/privacybrowser-window.png differ diff --git a/src/windows/BrowserWindow.cpp b/src/windows/BrowserWindow.cpp index 8f8a0b0..8382e00 100644 --- a/src/windows/BrowserWindow.cpp +++ b/src/windows/BrowserWindow.cpp @@ -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.