summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-12-06 12:19:20 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-12-06 12:19:20 (GMT)
commit3383c4505efbac99b74815d804e8770fbd5a1b34 (patch)
treee55c940cb886f518aef084fc24de645c7371f9b1
parent0bc0a891bd04969881418e0aad6664e1c2c4b592 (diff)
Fix 'Dock window selection is changed after code import'.
Tree view has been hided on import to speed up importing which could be better implemented by suspending tree view updates. FIXED-IN:2.21.0 (KDE Application 16.12.0) BUG:373347
-rw-r--r--umbrello/uml.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/umbrello/uml.cpp b/umbrello/uml.cpp
index 1cf0e80..023a6e5 100644
--- a/umbrello/uml.cpp
+++ b/umbrello/uml.cpp
@@ -2848,9 +2848,8 @@ void UMLApp::slotUpdateViews()
void UMLApp::importFiles(QStringList* fileList)
{
if (!fileList->isEmpty()) {
- bool saveState = listView()->parentWidget()->isVisible();
- listView()->parentWidget()->setVisible(false);
- logWindow()->parentWidget()->setVisible(true);
+ listView()->setUpdatesEnabled(false);
+ logWindow()->setUpdatesEnabled(false);
logWindow()->clear();
const QString& firstFile = fileList->first();
@@ -2862,7 +2861,8 @@ void UMLApp::importFiles(QStringList* fileList)
// Allowing undo of the whole class importing. I think it eats a lot of memory.
// Setting the modification, but without allowing undo.
m_doc->setModified(true);
- listView()->parentWidget()->setVisible(saveState);
+ listView()->setUpdatesEnabled(true);
+ logWindow()->setUpdatesEnabled(true);
}
}