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:
parent
ed7e93dccf
commit
0370b1320e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue