Commit 559917aa authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'Tree view is not visible after import'

Fix bug by restoring list view state after importing.

The list view has been disabled to speed up importing.

FIXED-IN:2.23.1 (KDE Applications 17.08.1)
BUG:383618
parent 22682b2a
......@@ -2865,6 +2865,7 @@ void UMLApp::slotUpdateViews()
void UMLApp::importFiles(QStringList &fileList, const QString &rootPath)
{
if (!fileList.isEmpty()) {
bool really_visible = !listView()->parentWidget()->visibleRegion().isEmpty();
bool saveState = listView()->parentWidget()->isVisible();
listView()->parentWidget()->setVisible(false);
logWindow()->parentWidget()->setVisible(true);
......@@ -2882,6 +2883,9 @@ void UMLApp::importFiles(QStringList &fileList, const QString &rootPath)
m_doc->setModified(true);
listView()->setUpdatesEnabled(true);
logWindow()->setUpdatesEnabled(true);
listView()->parentWidget()->setVisible(saveState);
if (really_visible)
m_listDock->raise();
}
}
......
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