diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-03-08 22:30:20 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-03-08 22:30:20 (GMT) | 
| commit | ba14801a660031f3a2ad06a2054fd8a6bc4b10b5 (patch) | |
| tree | ac66f230f94228460f35614a543e93692e827fec /Swift/QtUI/MUCSearch | |
| parent | 87ff1525f682105fa4e5a9a75dc7d844b19cfdbb (diff) | |
| download | swift-ba14801a660031f3a2ad06a2054fd8a6bc4b10b5.zip swift-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.cpp | 2 | 
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(); | 
 Swift
 Swift