diff --git a/mainwindow.cpp b/mainwindow.cpp index 77fec0b83b493840e1e66a8b03aca86b74c5f456..27b5eea199c39252230bad3f75ba6f65cb5a9efa 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));