summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/window.cpp4
-rw-r--r--src/unittests/gui/windowmanager.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 3fb6c458e..704b30834 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -177,7 +177,11 @@ Window::Window(const std::string &caption,
setTitleBarHeight(20);
if (skin.empty())
+ {
+ reportAlways("Default skin was used for window: %s",
+ caption.c_str());
skin = "window.xml";
+ }
int childPalette = 1;
// Loads the skin
diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc
index fdd653f71..d6f9eb51a 100644
--- a/src/unittests/gui/windowmanager.cc
+++ b/src/unittests/gui/windowmanager.cc
@@ -639,7 +639,7 @@ TEST_CASE("Windows tests", "windowmanager")
CREATEWIDGETV(itemShortcutWindow, ShortcutWindow,
"name",
container,
- std::string(),
+ "emotes.xml",
0,
0);
gui->draw();
@@ -650,7 +650,7 @@ TEST_CASE("Windows tests", "windowmanager")
{
CREATEWIDGETV(itemShortcutWindow, ShortcutWindow,
std::string(),
- std::string(),
+ "items.xml",
0,
0);
gui->draw();