From df3e9c2efa28418bd59ec80645c87349047e29f6 Mon Sep 17 00:00:00 2001 From: xarkes Date: Wed, 11 Oct 2017 23:57:06 +0200 Subject: [PATCH] Tiny fix --- src/MainWindow.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b2cf4643..71d76f8b 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -504,7 +504,7 @@ void MainWindow::refreshComments() void MainWindow::updateFrames() { /* TODO Widgets are independants and responsible to update their own - * content right? Just send a signal. + * content right? Just send a signal.*/ if (core == NULL) return; @@ -512,8 +512,12 @@ void MainWindow::updateFrames() if (first_time) { - for (auto w : dockWidgets) + for (auto W : dockWidgets) { + DockWidget* w = dynamic_cast(W); + if (w) { + w->setup(); + } w->setup(); } @@ -521,15 +525,18 @@ void MainWindow::updateFrames() } else { - for (auto w : dockWidgets) + for (auto W : dockWidgets) { + DockWidget* w = dynamic_cast(W); + if (w) { + w->refresh(); + } w->refresh(); } } // graphicsBar->refreshColorBar(); graphicsBar->fillData(); - */ } void MainWindow::on_actionLock_triggered()