diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-12-30 20:44:59 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 20:44:59 -0600 |
| commit | 6e1e847750dc593bcb2571c9775b2db11661cdb2 (patch) | |
| tree | d744ace687e5a603e00daae604cb1a5a35de6795 /src/aoimage.cpp | |
| parent | 593bd54000be14c9a1455914285c1b2549b0fa51 (diff) | |
Add and refine debug log messages (#625)
Since these are going to be visible to the user now, at least let's properly format them and make them somewhat helpful.
Diffstat (limited to 'src/aoimage.cpp')
| -rw-r--r-- | src/aoimage.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/aoimage.cpp b/src/aoimage.cpp index b84a279f..42fd5b81 100644 --- a/src/aoimage.cpp +++ b/src/aoimage.cpp @@ -26,14 +26,16 @@ AOImage::~AOImage() {} bool AOImage::set_image(QString p_image, QString p_misc) { - p_image = ao_app->get_image(p_image, ao_app->current_theme, ao_app->get_subtheme(), - ao_app->default_theme, p_misc, "", "", is_static || !ao_app->get_animated_theme()); + QString p_image_resolved = ao_app->get_image(p_image, ao_app->current_theme, ao_app->get_subtheme(), + ao_app->default_theme, p_misc, "", "", + is_static || !ao_app->get_animated_theme()); - if (!file_exists(p_image)) { - qWarning() << "Image" << p_image << "not found! Can't set!"; + if (!file_exists(p_image_resolved)) { + qWarning() << "could not find image" << p_image; return false; } - path = p_image; + + path = p_image_resolved; if (!is_static) { movie->stop(); movie->setFileName(path); |
