Version: 4.3.5 (using KDE 4.3.5) OS: Linux Installed from: Fedora RPMs Using the URL for the title of the tab in KRDC is a little annoying. What I would like to see is either the name from the bookmark entry, if appropriate, or just the first element of the URL (after the '@' character). I don't have the time to implement (1) but the following path achieves (2). diff -up kdenetwork-4.3.4/krdc/mainwindow.cpp ~/mainwindow.cpp --- kdenetwork-4.3.4/krdc/mainwindow.cpp 2009-11-28 00:03:39.000000000 +1100 +++ /home/kmg/mainwindow.cpp 2010-02-08 08:13:19.000000000 +1100 @@ -396,7 +396,11 @@ void MainWindow::newConnection(const KUr QScrollArea *scrollArea = createScrollArea(m_tabWidget, view); - const int newIndex = m_tabWidget->addTab(scrollArea, KIcon("krdc"), url.prettyUrl(KUrl::RemoveTrailingSlash)); + QString originalTitle = url.prettyUrl( KUrl::RemoveTrailingSlash ); + int at = originalTitle.indexOf( '@' ) + 1; + QString newTitle = originalTitle.mid( at, originalTitle.indexOf( '.', at ) - at ); + + const int newIndex = m_tabWidget->addTab(scrollArea, KIcon("krdc"), newTitle ); m_tabWidget->setCurrentIndex(newIndex); tabChanged(newIndex); // force to update m_currentRemoteView (tabChanged is not emitted when start page has been disabled)
I think it is a duplicate of bug 203310
I think your patch is not enough... It just simplifies the url, but does not respect the bookmarks title for example. Thanks for your report. *** This bug has been marked as a duplicate of bug 203310 ***
I agree but like I said "I don't have the time to implement (1) but the following path achieves (2)".
Created attachment 41030 [details] Patch for getting names in tabs instead of url
I have fixed your first wish. With the patch applied you will see the name as stated in the bookmark editor. THis is actually a easy fix (and I do not have programming experience in this language, only some in Java). I hope this makes you all happy. I wrote this patch more then 2 months ago and thought it would be fixed by now. But it still isn't so that is why I post it :)
Has this been merged in the main branch? And what version can I expect this patch to be included? I am on 4.4.4 now and still this is not included :s
This is a new feature; it will be in KDE SC 4.5.