Bug 61179 - Unable to paste URLs into blank konqueror window with middle-click
Summary: Unable to paste URLs into blank konqueror window with middle-click
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 4.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 81426 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-13 14:31 UTC by Dave Corrie
Modified: 2005-03-29 00:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A copy of my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file. (1.08 KB, text/plain)
2003-07-13 14:37 UTC, Dave Corrie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Corrie 2003-07-13 14:31:47 UTC
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 "Web Browsing" profile in konqueror, I unchecked the "Save URLs in profile" 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 "Save URLs in profile", but I don't think this should be necessary.
Comment 1 Dave Corrie 2003-07-13 14:37:13 UTC
Created attachment 1995 [details]
A copy of my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file.
Comment 2 Dave Corrie 2003-07-13 14:44:20 UTC
When I use my work-around of manually saving the "about:blank" location with my
webbrowsing profile, my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file
differs from attachment 1995 [details] 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
Comment 3 Maksim Orlovich 2004-05-29 19:44:27 UTC
*** Bug 81426 has been marked as a duplicate of this bug. ***
Comment 4 David Faure 2005-03-29 00:34:02 UTC
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->xmlDocImpl() ) return;
-
+    bool swallowEvent = false;
     int xm, ym;
     viewportToContents(_mouse->x(), _mouse->y(), xm, ym);
@@ -1216,9 +1215,11 @@ void KHTMLView::viewportMouseReleaseEven
     int xm, ym;
     viewportToContents(_mouse->x(), _mouse->y(), xm, ym);
-
     DOM::NodeImpl::MouseEvent mev( _mouse->stateAfter(), DOM::NodeImpl::MouseRelease );
+
+    if ( m_part->xmlDocImpl() )
+    {
     m_part->xmlDocImpl()->prepareMouseEvent( false, xm, ym, &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->clickCount,_mouse,false,DOM::NodeImpl::MouseRelease);
 
@@ -1241,4 +1242,5 @@ void KHTMLView::viewportMouseReleaseEven
     if (r && r->isWidget())
         _mouse->ignore();
+    }
 
     if (!swallowEvent) {