summaryrefslogtreecommitdiff
path: root/src/gui/itemviews/qtableview.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-06-10 14:41:33 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-06-10 14:45:15 +0200
commit08618c4d4e7b3d99ffa2b56ea03fa4e25de101bd (patch)
treeedc1a21f02d5b985b0a9b845160a87eb34317bb1 /src/gui/itemviews/qtableview.cpp
parent62725a02652cee576efe055d1371765945045026 (diff)
downloadqt4-tools-08618c4d4e7b3d99ffa2b56ea03fa4e25de101bd.tar.gz
Fix some possible double connected signals
Task-number: 250147 Reviewed-by: Thierry
Diffstat (limited to 'src/gui/itemviews/qtableview.cpp')
-rw-r--r--src/gui/itemviews/qtableview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp
index 0bded54607..454b1f54cc 100644
--- a/src/gui/itemviews/qtableview.cpp
+++ b/src/gui/itemviews/qtableview.cpp
@@ -1844,14 +1844,14 @@ void QTableView::setSortingEnabled(bool enable)
disconnect(horizontalHeader(), SIGNAL(sectionPressed(int)),
this, SLOT(selectColumn(int)));
connect(horizontalHeader(), SIGNAL(sortIndicatorChanged(int,Qt::SortOrder)),
- this, SLOT(sortByColumn(int)));
+ this, SLOT(sortByColumn(int)), Qt::UniqueConnection);
sortByColumn(horizontalHeader()->sortIndicatorSection(),
horizontalHeader()->sortIndicatorOrder());
} else {
connect(d->horizontalHeader, SIGNAL(sectionEntered(int)),
- this, SLOT(_q_selectColumn(int)));
+ this, SLOT(_q_selectColumn(int)), Qt::UniqueConnection);
connect(horizontalHeader(), SIGNAL(sectionPressed(int)),
- this, SLOT(selectColumn(int)));
+ this, SLOT(selectColumn(int)), Qt::UniqueConnection);
disconnect(horizontalHeader(), SIGNAL(sortIndicatorChanged(int,Qt::SortOrder)),
this, SLOT(sortByColumn(int)));
}