r14837 by cbradney - #8849: Ensure lock widget enabled when returning to single page layout
scribus-commit
scribus-commit at lists.scribus.net
Sun Feb 28 21:10:19 CET 2010
Revision: 14837
Author: cbradney
Date: 2010-02-28T20:03:14.103274Z
Commit message: #8849: Ensure lock widget enabled when returning to single page layout
Changeset:
M /trunk/Scribus/scribus/ui/marginwidget.cpp
Diffs:
Index: scribus/ui/marginwidget.cpp
===================================================================
--- scribus/ui/marginwidget.cpp (revision 14836)
+++ scribus/ui/marginwidget.cpp (revision 14837)
@@ -354,7 +354,8 @@
int item = presetCombo->currentIndex();
MarginStruct marg = presetCombo->getMargins(item, pageWidth, pageHeight, leftR->value() / m_unitRatio);
- facingPages ? presetCombo->setEnabled(true) : presetCombo->setEnabled(false);
+ presetCombo->setEnabled(facingPages);
+
bool restoringValues=false;
if (item==PresetLayout::none && savedPresetItem!=PresetLayout::none)
{
@@ -383,9 +384,10 @@
if (pageType == 1)
rightR->setEnabled(false);
leftR->setEnabled(item != PresetLayout::nineparts);
+ qDebug()<<item;
if (item!=PresetLayout::none)
linkMargins->setChecked(false);
- linkMargins->setEnabled(item==PresetLayout::none);
+ linkMargins->setEnabled(item==PresetLayout::none || !presetCombo->isEnabled());
connect(topR, SIGNAL(valueChanged(double)), this, SLOT(setTop()));
connect(bottomR, SIGNAL(valueChanged(double)), this, SLOT(setBottom()));
connect(leftR, SIGNAL(valueChanged(double)), this, SLOT(setLeft()));
@@ -466,7 +468,7 @@
if (savedPresetItem==PresetLayout::none)
savedMargins=marginData;
int item = presetCombo->currentIndex();
- facingPages ? presetCombo->setEnabled(true) : presetCombo->setEnabled(false);
+ presetCombo->setEnabled(facingPages);
bool restoringValues=false;
if (item==PresetLayout::none && savedPresetItem!=PresetLayout::none)
{
More information about the scribus-commit
mailing list