diff options
Diffstat (limited to 'scribus/shadebutton.cpp')
| -rw-r--r-- | scribus/shadebutton.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scribus/shadebutton.cpp b/scribus/shadebutton.cpp index dd84efa..7d12172 100644 --- a/scribus/shadebutton.cpp +++ b/scribus/shadebutton.cpp @@ -46,21 +46,17 @@ void ShadeButton::setShade(QAction *act) if (c == 0) { - Query* dia = new Query(this, "New", 1, 0, tr("&Shade:"), tr("Shade")); - if (dia->exec()) - { - c = dia->getEditText().toInt(&ok); + Query dia(this, "New", 1, 0, tr("&Shade:"), tr("Shade")); + if (dia.exec()) + { + c = dia.getEditText().toInt(&ok); if (ok) b = qMax(qMin(c, 100),0); else b = 100; - delete dia; } else - { - delete dia; return; - } } setText(QString::number(b)+" %"); emit clicked(); |
