r17907 by fschmid - PDF-Import Dialog: handle single page spinbox correctly.
scribus-commit
scribus-commit at lists.scribus.net
Sun Nov 25 15:56:53 UTC 2012
Author: fschmid
Date: Sun Nov 25 15:56:53 2012
New Revision: 17907
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17907
Log:
PDF-Import Dialog: handle single page spinbox correctly.
Modified:
trunk/Scribus/scribus/plugins/import/pdf/pdfimportoptions.cpp
Modified: trunk/Scribus/scribus/plugins/import/pdf/pdfimportoptions.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17907&path=/trunk/Scribus/scribus/plugins/import/pdf/pdfimportoptions.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/pdfimportoptions.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/pdfimportoptions.cpp Sun Nov 25 15:56:53 2012
@@ -91,6 +91,11 @@
{
QImage img = m_plugin->readPreview(pg, ui->previewWidget->width(), ui->previewWidget->height());
ui->previewWidget->setPixmap(QPixmap::fromImage(img));
+ disconnect(ui->spinBox, SIGNAL(valueChanged(int)), this, SLOT(updateFromSpinBox(int)));
+ disconnect(ui->spinBox, SIGNAL(valueChanged(int)), this, SLOT(updatePreview(int)));
+ ui->spinBox->setValue(pg);
+ connect(ui->spinBox, SIGNAL(valueChanged(int)), this, SLOT(updateFromSpinBox(int)));
+ connect(ui->spinBox, SIGNAL(valueChanged(int)), this, SLOT(updatePreview(int)));
}
}
More information about the scribus-commit
mailing list