summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2009-04-07 19:38:19 +0200
committerLukáš Lalinský <lalinsky@gmail.com>2009-04-07 19:38:19 +0200
commitfa72fffe28df3599f35c90544888c9ef6a59c992 (patch)
tree37c7d6729eb1870fde1064564d6ecde44a03f532 /src
parentcd2fa6b503f08edfe0bff33aeb81235d66fb050f (diff)
downloaddbmodel-fa72fffe28df3599f35c90544888c9ef6a59c992.tar.xz
Block signals from the color picker while setting a color
Diffstat (limited to 'src')
-rw-r--r--src/items/database/databasetableproperties.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/items/database/databasetableproperties.cpp b/src/items/database/databasetableproperties.cpp
index 1f54fe6..779b4bc 100644
--- a/src/items/database/databasetableproperties.cpp
+++ b/src/items/database/databasetableproperties.cpp
@@ -15,6 +15,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <QGridLayout>
+#include <QDebug>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
@@ -128,7 +129,9 @@ DatabaseTableProperties::switchCurrentItem(DiagramItem *oldItem, DiagramItem *)
DatabaseTable *table = currentTable();
if (table) {
d->nameEdit->setText(table->name());
+ d->colorPicker->blockSignals(true);
d->colorPicker->setCurrentColor(table->color());
+ d->colorPicker->blockSignals(false);
d->columnListView->setColumnList(table->columnList());
connect(table, SIGNAL(propertyChanged(const QString &, const QVariant &)), SLOT(updateProperty(const QString &, const QVariant &)));
}