summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-08 22:30:20 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-08 22:30:20 (GMT)
commitba14801a660031f3a2ad06a2054fd8a6bc4b10b5 (patch)
treeac66f230f94228460f35614a543e93692e827fec /Swift/QtUI/MUCSearch
parent87ff1525f682105fa4e5a9a75dc7d844b19cfdbb (diff)
downloadswift-contrib-ba14801a660031f3a2ad06a2054fd8a6bc4b10b5.zip
swift-contrib-ba14801a660031f3a2ad06a2054fd8a6bc4b10b5.tar.bz2
Fixed crash on Qt 4.7.0 + Windows XP.
Diffstat (limited to 'Swift/QtUI/MUCSearch')
-rw-r--r--Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp b/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp
index 135b4ce..2fa24c2 100644
--- a/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp
+++ b/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp
@@ -169,11 +169,11 @@ void QtMUCSearchWindow::handleSelectionChanged(const QItemSelection&, const QIte
}
MUCSearchRoomItem* QtMUCSearchWindow::getSelectedRoom() const {
- QItemSelection ranges = ui_.results_->selectionModel()->selection();
// Not using selectedIndexes(), because this seems to cause a crash in Qt (4.7.0) in the
// QModelIndexList destructor.
// This is a workaround posted in http://www.qtcentre.org/threads/16933 (although this case
// was resolved by linking against the debug libs, ours isn't, and we're not alone)
+ QItemSelection ranges = ui_.results_->selectionModel()->selection();
QModelIndexList lstIndex;
for (int i = 0; i < ranges.count(); ++i) {
QModelIndex parent = ranges.at(i).parent();