<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>61179</bug_id>
          
          <creation_ts>2003-07-13 14:31:47 +0000</creation_ts>
          <short_desc>Unable to paste URLs into blank konqueror window with middle-click</short_desc>
          <delta_ts>2005-03-29 00:34:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>general</component>
          <version>4.0</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Corrie">kde</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>mschiff</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>145537</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Corrie">kde</who>
    <bug_when>2003-07-13 14:31:47 +0000</bug_when>
    <thetext>Version:           4.0 (using KDE 3.1.2)
Installed from:    SuSE
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

When I saved my &quot;Web Browsing&quot; profile in konqueror, I unchecked the &quot;Save URLs in profile&quot; checkbox. Now, when I launch konqueror with the command:

kfmclient openProfile webbrowsing

I am unable to paste a URL into the main window area with the middle mouse button.

I can work around this problem by manually visiting about:blank and then checking &quot;Save URLs in profile&quot;, but I don&apos;t think this should be necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145538</commentid>
    <comment_count>1</comment_count>
      <attachid>1995</attachid>
    <who name="Dave Corrie">kde</who>
    <bug_when>2003-07-13 14:37:13 +0000</bug_when>
    <thetext>Created attachment 1995
A copy of my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145540</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Corrie">kde</who>
    <bug_when>2003-07-13 14:44:20 +0000</bug_when>
    <thetext>When I use my work-around of manually saving the &quot;about:blank&quot; location with my
webbrowsing profile, my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file
differs from attachment 1995 as follows:

--- webbrowsing 2003-07-13 13:09:25.000000000 +0100
+++ webbrowsing_about_blank     2003-07-13 13:07:54.000000000 +0100
@@ -51,11 +51,13 @@
 View1_ServiceName=konq_sidebartng
 View1_ServiceType=Browser/View
 View1_ToggleView=true
+View1_URL=
 View2_LinkedView=false
 View2_LockedLocation=false
 View2_PassiveMode=false
 View2_ServiceName=khtml
 View2_ServiceType=text/html
 View2_ToggleView=false
+View2_URL=about:blank
 View2_docContainer=true
 Width=1592
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237246</commentid>
    <comment_count>3</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2004-05-29 19:44:27 +0000</bug_when>
    <thetext>*** Bug 81426 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329226</commentid>
    <comment_count>4</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2005-03-29 00:34:02 +0000</bug_when>
    <thetext>CVS commit by faure: 

Send mouse release event to KHTMLPart even when no url was opened
(e.g. konqueror with intro disabled). This allows to handle MMB-pasting.
BUG: 61179


  M +24 -22    khtmlview.cpp   1.696


--- kdelibs/khtml/khtmlview.cpp  #1.695:1.696
@@ -1212,6 +1212,5 @@ void KHTMLView::viewportMouseMoveEvent( 
 void KHTMLView::viewportMouseReleaseEvent( QMouseEvent * _mouse )
 {
-    if ( !m_part-&gt;xmlDocImpl() ) return;
-
+    bool swallowEvent = false;
     int xm, ym;
     viewportToContents(_mouse-&gt;x(), _mouse-&gt;y(), xm, ym);
@@ -1216,9 +1215,11 @@ void KHTMLView::viewportMouseReleaseEven
     int xm, ym;
     viewportToContents(_mouse-&gt;x(), _mouse-&gt;y(), xm, ym);
-
     DOM::NodeImpl::MouseEvent mev( _mouse-&gt;stateAfter(), DOM::NodeImpl::MouseRelease );
+
+    if ( m_part-&gt;xmlDocImpl() )
+    {
     m_part-&gt;xmlDocImpl()-&gt;prepareMouseEvent( false, xm, ym, &amp;mev );
 
-    bool swallowEvent = dispatchMouseEvent(EventImpl::MOUSEUP_EVENT,mev.innerNode.handle(),mev.innerNonSharedNode.handle(),true,
+        swallowEvent = dispatchMouseEvent(EventImpl::MOUSEUP_EVENT,mev.innerNode.handle(),mev.innerNonSharedNode.handle(),true,
                                            d-&gt;clickCount,_mouse,false,DOM::NodeImpl::MouseRelease);
 
@@ -1241,4 +1242,5 @@ void KHTMLView::viewportMouseReleaseEven
     if (r &amp;&amp; r-&gt;isWidget())
         _mouse-&gt;ignore();
+    }
 
     if (!swallowEvent) {
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1995</attachid>
            <date>2003-07-13 14:37:13 +0000</date>
            <delta_ts>2003-07-13 14:42:56 +0000</delta_ts>
            <desc>A copy of my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file.</desc>
            <filename>webbrowsing</filename>
            <type>text/plain</type>
            <size>1110</size>
            <attacher name="Dave Corrie">kde</attacher>
            
              <data encoding="base64">W01haW4gV2luZG93IFNldHRpbmdzXQpNZW51QmFyPUVuYWJsZWQKCltNYWluIFdpbmRvdyBTZ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