Группа :: Графические оболочки/KDE
Пакет: kdelibs
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: kdelibs-3.3-fix-copy-link-location-with-email.patch
--- kdelibs-3.3.2/khtml/khtml_ext.cpp~ 2005-01-03 19:07:53 +0300
+++ kdelibs-3.3.2/khtml/khtml_ext.cpp 2005-01-03 22:10:03 +0300
@@ -551,10 +551,20 @@ void KHTMLPopupGUIClient::slotCopyLinkLo
// Set it in both the mouse selection and in the clipboard
KURL::List lst;
lst.append( safeURL );
+ if ( d->m_url.url().contains( "mailto:" ) )
+ {
+ QApplication::clipboard()->setSelectionMode(true);
+ QApplication::clipboard()->setText(d->m_url.path() );
+ QApplication::clipboard()->setSelectionMode(false);
+ QApplication::clipboard()->setText(d->m_url.path() );
+ }
+ else
+ {
QApplication::clipboard()->setSelectionMode(true);
QApplication::clipboard()->setData( new KURLDrag( lst ) );
QApplication::clipboard()->setSelectionMode(false);
QApplication::clipboard()->setData( new KURLDrag( lst ) );
+ }
#else
QApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries
#endif