diff --git a/harbour/ChangeLog b/harbour/ChangeLog index bd4fbcb9af..9eaa666623 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2010-06-30 10:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/hbqt_hbqplaintextedit.cpp + ! Fixed: right-button-press was clearing selection. + 2010-06-30 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * external/bzip2/Makefile - Deleted now not needed old URL tag. diff --git a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp index 526b7a466e..6b7de75912 100644 --- a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp +++ b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp @@ -732,15 +732,18 @@ void HBQPlainTextEdit::mousePressEvent( QMouseEvent *event ) } else { - setCursorWidth( 1 ); - if( ! isSelectionPersistent ) + if( event->buttons() & Qt::LeftButton ) { - selectionState = 0; - hbClearSelection(); - } - else - { - selectionState = 1; + setCursorWidth( 1 ); + if( ! isSelectionPersistent ) + { + selectionState = 0; + hbClearSelection(); + } + else + { + selectionState = 1; + } } QPlainTextEdit::mousePressEvent( event ); }