summaryrefslogtreecommitdiff
path: root/src/unittests/gui/widgets/browserbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/gui/widgets/browserbox.cc')
-rw-r--r--src/unittests/gui/widgets/browserbox.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unittests/gui/widgets/browserbox.cc b/src/unittests/gui/widgets/browserbox.cc
index 2a72350af..7e4689707 100644
--- a/src/unittests/gui/widgets/browserbox.cc
+++ b/src/unittests/gui/widgets/browserbox.cc
@@ -65,9 +65,6 @@ TEST_CASE("BrowserBox tests", "browserbox")
graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE);
#endif // USE_SDL2
- theme = new Theme;
- Theme::selectSkin();
-
Dirs::initRootDir();
Dirs::initHomeDir();
@@ -75,6 +72,9 @@ TEST_CASE("BrowserBox tests", "browserbox")
setConfigDefaults2(config);
setBrandingDefaults(branding);
+ theme = new Theme;
+ Theme::selectSkin();
+
ActorSprite::load();
gui = new Gui();
gui->postInit(mainGraphics);