aboutsummaryrefslogtreecommitdiff
path: root/src/aoscene.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-10-13 02:51:07 +0300
committerCrystalwarrior <varsash@gmail.com>2019-10-13 02:51:07 +0300
commit6d7a6d7398dcb74550e7722c4b1436f42d00123c (patch)
treee23bd7a461339c984a753b4d44af8c36b4e6f586 /src/aoscene.cpp
parent1cc5b5b4412f225181567b0849ea7ba111fe6f90 (diff)
Fix an issue with "missing desk" not properly replacing last_image (making everyone's desk break from pos hld to def/wit/pro)
Diffstat (limited to 'src/aoscene.cpp')
-rw-r--r--src/aoscene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aoscene.cpp b/src/aoscene.cpp
index 527d25db..6ada5ee5 100644
--- a/src/aoscene.cpp
+++ b/src/aoscene.cpp
@@ -15,11 +15,11 @@ void AOScene::set_image(QString p_image)
QString background_path = ao_app->get_image_suffix(ao_app->get_background_path(p_image));
if (!file_exists(background_path)) //If image is missing, clear current image
{
- //background_path = ao_app->get_image_suffix(ao_app->get_default_background_path(p_image)); //Default path
this->clear();
this->setMovie(nullptr);
m_movie->stop();
+ last_image = "";
return;
}
@@ -55,11 +55,11 @@ void AOScene::set_legacy_desk(QString p_image)
QString desk_path = ao_app->get_image_suffix(ao_app->get_background_path(p_image));
if (!file_exists(desk_path)) //If image is missing, clear current image
{
- //desk_path = ao_app->get_image_suffix(ao_app->get_default_background_path(p_image)); //Default path
this->clear();
this->setMovie(nullptr);
m_movie->stop();
+ last_image = "";
return;
}