CVS commit by mteijeiro: * Hide correctly for this type of quoted mail: xxxxxxxx >>> yyyyy >> zzzz xxxxx * Try remember the scrollview position when the collape/expand is done. M +3 -0 kmreaderwin.cpp 1.806 M +2 -2 objecttreeparser.cpp 1.133 --- kdepim/kmail/objecttreeparser.cpp #1.132:1.133 @@ -2529,6 +2529,6 @@ QString ObjectTreeParser::quotedHTML( co } else - //only show the QuoteMark when is the first level hidden - if ( mReader->mLevelQuote == actQuoteLevel && currQuoteLevel < actQuoteLevel ) + //only show the QuoteMark when is the first line of the level hidden + if ( !curHidden ) { //Expand all quotes --- kdepim/kmail/kmreaderwin.cpp #1.805:1.806 @@ -733,4 +733,7 @@ void KMReaderWin::slotLevelQuote( int l kdDebug( 5006 ) << "Old Level: " << mLevelQuote << " New Level: " << l << endl; mLevelQuote = l; + QScrollView * scrollview = static_cast(mViewer->widget()); + mSavedRelativePosition = (float)scrollview->contentsY() / scrollview->contentsHeight(); + update(true); }