From 5137f5ded0d2f4cfc5f619594c89aac3bb684520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 25 Aug 2016 18:58:59 +0200 Subject: [PATCH] Ugly workaround for glitch when QOpenGLWidget (flow) is used just after any other widget in the views stack, somehow QOpenGLWidget is messing with the rendering of the side bar (wrong buffer swapping). --- YACReaderLibrary/yacreader_navigation_controller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/YACReaderLibrary/yacreader_navigation_controller.cpp b/YACReaderLibrary/yacreader_navigation_controller.cpp index ab1afd33..4c07d484 100644 --- a/YACReaderLibrary/yacreader_navigation_controller.cpp +++ b/YACReaderLibrary/yacreader_navigation_controller.cpp @@ -18,6 +18,8 @@ #include "empty_special_list.h" #include "yacreader_comics_views_manager.h" +#include "yacreader_sidebar.h" + #include "QsLog.h" YACReaderNavigationController::YACReaderNavigationController(LibraryWindow *parent, YACReaderComicsViewsManager *comicsViewsManager) : @@ -45,6 +47,10 @@ void YACReaderNavigationController::selectedFolder(const QModelIndex &mi) loadFolderInfo(modelIndex); + //BUG, ugly workaround for glitch when QOpenGLWidget (flow) is used just after any other widget in the views stack + //Somehow QOpenGLWidget is messing with the rendering of the side bar (wrong buffer swapping) + libraryWindow->sideBar->update(); + libraryWindow->setToolbarTitle(modelIndex); }