Commit 139a00b7 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent a77e664a
......@@ -86,9 +86,11 @@ void HtmlStatusBar::setMultipartHtmlMode()
void HtmlStatusBar::setMode( Util::HtmlMode m, UpdateMode mode )
{
mMode = m;
if ( mode == Update )
update();
if (mMode != m) {
mMode = m;
if ( mode == Update )
update();
}
}
void HtmlStatusBar::mousePressEvent( QMouseEvent * event )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment