Skip to content

Commit

Permalink
psd fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Sep 17, 2020
1 parent 911b630 commit 43e8572
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/cyan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ void Cyan::openImage(Magick::Image image)

void Cyan::saveImage(QString file, bool notify, bool closeOnSave)
{
qDebug() << "SAVE PSD?" << imageData.isPSD;
if (imageData.isPSD) {
QFileInfo imageFile(file);
if (imageData.isPSD && imageFile.suffix().toLower() == "psd") {
exportPSD(file);
return;
}
Expand Down Expand Up @@ -1604,10 +1604,8 @@ void Cyan::enableLayers(bool enable)
{
selectedLayer->setEnabled(enable);
selectedLayerLabel->setEnabled(enable);
if (!enable) {
selectedLayer->clear();
return;
}
selectedLayer->clear();
if (!enable) { return; }
selectedLayer->blockSignals(true);
for (size_t i = 0; i < imageData.layers.size(); ++i) {
QString label = QString::fromStdString(imageData.layers.at(i).label());
Expand Down

0 comments on commit 43e8572

Please sign in to comment.