]> git.sur5r.net Git - minitube/commitdiff
Attempt to reduce flicker
authorFlavio Tordini <flavio.tordini@gmail.com>
Tue, 21 Jul 2009 20:15:42 +0000 (22:15 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Tue, 21 Jul 2009 20:15:42 +0000 (22:15 +0200)
src/MainWindow.cpp

index 2e9406b5a8aea036c0f1dcf77014dcf16a91b109..692ff462257bcd2955d92f7e819ff2da6de8a379 100755 (executable)
@@ -330,6 +330,8 @@ void MainWindow::goBack() {
 
 void MainWindow::showWidget ( QWidget* widget ) {
 
+    setUpdatesEnabled(false);
+
     // call hide method on the current view
     View* oldView = dynamic_cast<View *> (views->currentWidget());
     if (oldView != NULL) {
@@ -367,6 +369,7 @@ void MainWindow::showWidget ( QWidget* widget ) {
     fadeInWidget(views->currentWidget(), widget);
     views->setCurrentWidget(widget);
 
+    setUpdatesEnabled(true);
 }
 
 void MainWindow::fadeInWidget(QWidget *oldWidget, QWidget *newWidget) {