summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-31 17:23:52 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:18 +0100
commitac6373edf677aba5a2add70f41e373e678c567ba (patch)
tree772058a870563d4bb9062057bb6898907c0081be /src
parentca5beac25189f0512d3f5c32e8d075ddba97fead (diff)
Fix drop indicator style in mod list.
Diffstat (limited to 'src')
-rw-r--r--src/modlistview.cpp10
1 files changed, 3 insertions, 7 deletions
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<QProxyStyle*>(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)