From ba2fb4b13b1a75eef91b810d1e8ebce0fc0a39c5 Mon Sep 17 00:00:00 2001 From: Deurstann <tristan.derouet@gmail.com> Date: Sun, 18 Feb 2024 17:43:12 +0100 Subject: [PATCH] Fix delete skip next stickers --- mainwindow.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 77fec0b..27b5eea 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -116,7 +116,6 @@ void MainWindow::on_deleteButton_clicked() } QFile::rename(this->currentImagePath, this->imageFolder+"/deletedStickers/"+this->imageList[this->currentImageIndex]); this->imageList.removeAt(this->currentImageIndex); - this->currentImageIndex++; if(this->currentImageIndex>=this->imageList.size()) this->currentImageIndex = 0; this->currentImagePath = this->imageFolder+"/"+this->imageList[this->currentImageIndex]; ui->label_3->setText("Nom actuel: "+this->imageList[this->currentImageIndex].split(".").at(0)); -- GitLab