[network/ktorrent] ktorrent/view: Remove URL from main view tooltip

Jack Hill <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6d56c394e79e3332af014b0f6215ec1988379aa0 by Jack Hill.
Committed on 01/08/2026 at 09:14.
Pushed by jackh into branch 'master'.

Remove URL from main view tooltip

1. It can be really long in some circumstances, e.g. magnet links
2. It's not really that useful information. If someone misses is they
   can open a bug report and then we can add it as a table column.
   Otherwise for now they can right click a torrent and copy the URL to
   clipboard.

BUG: 432992

M  +1    -6    ktorrent/view/viewmodel.cpp

https://invent.kde.org/network/ktorrent/-/commit/6d56c394e79e3332af014b0f6215ec1988379aa0

diff --git a/ktorrent/view/viewmodel.cpp b/ktorrent/view/viewmodel.cpp
index 821d91750..fb2c0a068 100644
--- a/ktorrent/view/viewmodel.cpp
+++ b/ktorrent/view/viewmodel.cpp
@@ -608,13 +608,8 @@ QVariant ViewModel::data(const QModelIndex &index, int role) const
     } else if (role == Qt::DecorationRole && index.column() == NAME) {
         return item->statusIcon();
     } else if (role == Qt::ToolTipRole && index.column() == NAME) {
-        QString tooltip;
         bt::TorrentInterface *tc = item->tc;
-        if (tc->loadUrl().isValid()) {
-            tooltip = i18n("%1<br>Url: <b>%2</b>", tc->getDisplayName(), tc->loadUrl().toDisplayString());
-        } else {
-            tooltip = tc->getDisplayName();
-        }
+        QString tooltip = tc->getDisplayName();
 
         tooltip += QLatin1String("<br/><br/>") + tc->getStats().statusToString();
         if (tc->getTrackersList()->noTrackersReachable()) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.