diff widgets/PropertyBox.cpp @ 361:67834ac56f2b

* better default name for new colour (hi Craig!)
author Chris Cannam
date Wed, 06 Feb 2008 14:25:46 +0000
parents 2f83b6e3b8ca
children e1a9e478b7f2
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Wed Feb 06 14:15:09 2008 +0000
+++ b/widgets/PropertyBox.cpp	Wed Feb 06 14:25:46 2008 +0000
@@ -642,8 +642,8 @@
     if (!newColour.isValid()) return;
 
     ColourNameDialog dialog(tr("Name New Colour"),
-                            tr("Enter name for the new colour:"),
-                            newColour, "", this);
+                            tr("Enter a name for the new colour:"),
+                            newColour, newColour.name(), this);
     dialog.showDarkBackgroundCheckbox(tr("Prefer black background for this colour"));
     if (dialog.exec() == QDialog::Accepted) {
         //!!! command