src/EditProduct.cpp

changeset 467
c5f6f3f1b714
parent 465
8fc909360552
child 468
b21da6f583be
--- a/src/EditProduct.cpp	Wed Jan 18 17:08:25 2023 +0100
+++ b/src/EditProduct.cpp	Fri Jan 20 16:44:08 2023 +0100
@@ -151,6 +151,8 @@
                 }
 	    }
 	}
+	product->images_count = -1;	/* Not yet loaded */
+	product->images_dirty = false;
 
     } else {
 	/* New product, set some defaults */
@@ -280,6 +282,8 @@
 	product->divide_type = product->divide_parts = product->divide_part = 0;
 	product->divide_size = 0;
 	product->divide_factor = 1;
+	product->images_count = -1;
+	product->images_dirty = false;
     }
 
     // Tab generic.
@@ -755,6 +759,11 @@
 
     /* All signals from tab Images */
     connect(ui->addImage, SIGNAL(clicked()), this, SLOT(addImage_clicked()));
+    connect(ui->delImage, SIGNAL(clicked()), this, SLOT(delImage_clicked()));
+    connect(ui->nextImage, SIGNAL(clicked()), this, SLOT(nextImage_clicked()));
+    connect(ui->prevImage, SIGNAL(clicked()), this, SLOT(prevImage_clicked()));
+    connect(ui->downloadImage, SIGNAL(clicked()), this, SLOT(downloadImage_clicked()));
+    connect(ui->printImage, SIGNAL(clicked()), this, SLOT(printImage_clicked()));
 
     setStage();
 

mercurial