Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5f84b4ac authored by Laurent Montel's avatar Laurent Montel 😁

Fix show/hide treeview

parent a6799cb9
......@@ -1382,7 +1382,7 @@ void ViewerPrivate::setMessagePart( KMime::Content * node )
void ViewerPrivate::showHideMimeTree( )
{
#ifndef QT_NO_TREEVIEW
if (mimePartTreeIsEmpty() && !mMimePartTree->isHidden()) {
if (mimePartTreeIsEmpty()) {
mMimePartTree->hide();
return;
}
......@@ -1426,7 +1426,6 @@ void ViewerPrivate::adjustLayout()
else
mSplitter->insertWidget( 0, mMimePartTree );
mSplitter->setSizes( splitterSizes );
if ( GlobalSettings::self()->mimeTreeMode() == GlobalSettings::EnumMimeTreeMode::Always &&
mMsgDisplay )
mMimePartTree->show();
......
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