From ac6373edf677aba5a2add70f41e373e678c567ba Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 31 Dec 2020 17:23:52 +0100 Subject: Fix drop indicator style in mod list. --- src/modlistview.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/modlistview.cpp') diff --git a/src/modlistview.cpp b/src/modlistview.cpp index b6b712f2..18486eeb 100644 --- a/src/modlistview.cpp +++ b/src/modlistview.cpp @@ -98,13 +98,9 @@ void ModListView::refresh() { updateGroupByProxy(-1); - // since we use a proxy, modifying the stylesheet messes things - // up by and this fixes it (force update style and fix drop indicator - // after changing the stylesheet) - if (auto* proxy = qobject_cast(style())) { - auto* s = proxy->baseStyle(); - setStyle(new ModListProxyStyle(s)); - } + // since we use a proxy, modifying the stylesheet breaks it + // so we need to reset it + setStyle(new ModListProxyStyle(QApplication::style())); } void ModListView::setProfile(Profile* profile) -- cgit v1.3.1