Avoid web view appearing as white rectangle when no file is opened

* Hide web view (and for consistency reglar info view) when no file opened
* The white rectancle is otherwise disturbing when a dark theme is used
This commit is contained in:
Martchus 2020-04-26 19:45:54 +02:00
parent ed7e93dccf
commit 0370b1320e
1 changed files with 2 additions and 2 deletions

View File

@ -503,11 +503,11 @@ void TagEditorWidget::updateFileStatusStatus()
// webview
#ifndef TAGEDITOR_NO_WEBVIEW
if (m_infoWebView) {
m_infoWebView->setEnabled(opened);
m_infoWebView->setVisible(opened);
}
#endif
if (m_infoTreeView) {
m_infoTreeView->setEnabled(opened);
m_infoTreeView->setVisible(opened);
}
// inform the main window about the file status change as well
emit fileStatusChanged(opened, hasTag);