aboutsummaryrefslogtreecommitdiff
path: root/src/animationloader.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-05-27 10:22:01 -0500
committerin1tiate <32779090+in1tiate@users.noreply.github.com>2024-05-27 10:22:01 -0500
commitda3b872beb7959eae4c1574e0b1b0a8ae34cb062 (patch)
tree1d29e51effee9c469e2a7523cf937b36a0f5d4ac /src/animationloader.cpp
parent0475b2a045780d2a8ab4ce439a09cf13a52027ef (diff)
just hide the layer in courtroom.cpp
Diffstat (limited to 'src/animationloader.cpp')
-rw-r--r--src/animationloader.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/animationloader.cpp b/src/animationloader.cpp
index ae7bfe07..5f57cbe5 100644
--- a/src/animationloader.cpp
+++ b/src/animationloader.cpp
@@ -25,17 +25,6 @@ void AnimationLoader::load(const QString &fileName)
{
return;
}
- else if (fileName == QObject::tr("Invalid File"))
- {
- // Set the image to a null pixmap if it's invalid
- stopLoading();
- m_size = QSize(1, 1);
- m_frames.clear();
- m_frames.append(AnimationFrame(QPixmap(), 0));
- m_frame_count = 1;
- m_loop_count = 0;
- return;
- }
stopLoading();
m_file_name = fileName;
QImageReader *reader = new QImageReader;