r19520 by jghali - #12719: Illogical behaviour of Extended Image Properties dialog with multi-layered PSD files
scribus-commit
scribus-commit at lists.scribus.net
Sun Sep 21 21:33:29 UTC 2014
Author: jghali
Date: Sun Sep 21 21:33:29 2014
New Revision: 19520
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19520
Log:
#12719: Illogical behaviour of Extended Image Properties dialog with multi-layered PSD files
Modified:
branches/Version14x/Scribus/scribus/extimageprops.cpp
Modified: branches/Version14x/Scribus/scribus/extimageprops.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19520&path=/branches/Version14x/Scribus/scribus/extimageprops.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/extimageprops.cpp (original)
+++ branches/Version14x/Scribus/scribus/extimageprops.cpp Sun Sep 21 21:33:29 2014
@@ -294,6 +294,9 @@
connect(cancelButton, SIGNAL(clicked()), this, SLOT(leaveCancel()));
if (info->layerInfo.count() != 0)
{
+ layerTable->selectionModel()->clearSelection();
+ opacitySpinBox->setEnabled(false);
+ blendMode->setEnabled(false);
connect(layerTable, SIGNAL(cellClicked(int, int)), this, SLOT(selLayer(int)));
connect(opacitySpinBox, SIGNAL(valueChanged(int)), this, SLOT(changedLayer()));
connect(blendMode, SIGNAL(activated(int)), this, SLOT(changedLayer()));
@@ -406,6 +409,9 @@
void ExtImageProps::selLayer(int layer)
{
+ opacitySpinBox->setEnabled(true);
+ blendMode->setEnabled(true);
+
disconnect(opacitySpinBox, SIGNAL(valueChanged(int)), this, SLOT(changedLayer()));
disconnect(blendMode, SIGNAL(activated(int)), this, SLOT(changedLayer()));
if ((currentItem->pixm.imgInfo.isRequest) && (currentItem->pixm.imgInfo.RequestProps.contains(layerTable->rowCount() - layer - 1)))
More information about the scribus-commit
mailing list