[WebKit-devel] KDE/kdebase/apps/konqueror/src
David Faure
faure at kde.org
Thu Aug 20 18:32:41 CEST 2009
SVN commit 1013735 by dfaure:
Let MMB on a link use the same htmlpart as the one currently used
(which is useful when selecting a non-default htmlpart with the View Mode submenu).
CCMAIL: webkit-devel at kde.org
M +7 -1 konqmainwindow.cpp
--- trunk/KDE/kdebase/apps/konqueror/src/konqmainwindow.cpp #1013734:1013735
@@ -543,13 +543,19 @@
if (!view && !req.browserArgs.newTab())
view = m_currentView; /* Note, this can be 0, e.g. on startup */
else if (!view && req.browserArgs.newTab()) {
+
+ QString serviceName;
+ // Use same html part as the current view (e.g. webkit).
+ if (m_currentView && m_currentView->supportsMimeType("text/html"))
+ serviceName = m_currentView->service()->desktopEntryName();
+
// The URL should be opened in a new tab. Let's create the tab right away,
// it gives faster user feedback (#163628). For a short while (kde-4.1-beta1)
// I removed this entire block so that we wouldn't end up with a useless tab when
// launching an external application for this mimetype. But user feedback
// in all cases is more important than empty tabs in some cases.
view = m_pViewManager->addTab("text/html",
- QString(),
+ serviceName,
false,
req.openAfterCurrentPage);
if (view) {
More information about the WebKit-devel
mailing list