summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 &)));
}