diff options
Diffstat (limited to 'knotes')
-rw-r--r-- | knotes/knote.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp index 4281f713d..17d482e37 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -1050,16 +1050,19 @@ void KNote::updateFocus() if ( m_tool && m_tool->isHidden() && m_editor->textFormat() == TQTextEdit::RichText ) { m_tool->show(); - m_editor->cornerWidget()->show(); setGeometry( x(), y(), width(), height() + m_tool->height() ); } + m_editor->cornerWidget()->show(); } - else if ( m_tool && !m_tool->isHidden() ) + else { - m_tool->hide(); - m_editor->cornerWidget()->hide(); - setGeometry( x(), y(), width(), height() - m_tool->height() ); - updateLayout(); // to update the minimum height + if ( m_tool && !m_tool->isHidden() ) + { + m_tool->hide(); + setGeometry( x(), y(), width(), height() - m_tool->height() ); + updateLayout(); // to update the minimum height + } + m_editor->cornerWidget()->hide(); } m_fold->hide(); |