projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-statusbar can now be hidden (you can find it in views at the bottom)
[quassel.git]
/
src
/
client
/
mappedselectionmodel.cpp
diff --git
a/src/client/mappedselectionmodel.cpp
b/src/client/mappedselectionmodel.cpp
index
f5b7470
..
99b1e4f
100644
(file)
--- a/
src/client/mappedselectionmodel.cpp
+++ b/
src/client/mappedselectionmodel.cpp
@@
-93,17
+93,14
@@
void MappedSelectionModel::mappedSetCurrentIndex(const QModelIndex &index, QItem
QModelIndex mappedIndex = mapFromSource(index);
if(mappedIndex == currentIndex())
return;
QModelIndex mappedIndex = mapFromSource(index);
if(mappedIndex == currentIndex())
return;
-
- if(mappedIndex.isValid())
- setCurrentIndex(mappedIndex, command);
- else if(hasSelection())
- setCurrentIndex(currentIndex(), QItemSelectionModel::Clear);
+ setCurrentIndex(mappedIndex, command);
}
void MappedSelectionModel::_currentChanged(const QModelIndex ¤t, const QModelIndex &previous) {
Q_UNUSED(previous)
}
void MappedSelectionModel::_currentChanged(const QModelIndex ¤t, const QModelIndex &previous) {
Q_UNUSED(previous)
- emit mappedCurrentChanged(mapToSource(current));
+ if(current.isValid())
+ emit mappedCurrentChanged(mapToSource(current));
}
void MappedSelectionModel::_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) {
}
void MappedSelectionModel::_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) {
@@
-111,4
+108,4
@@
void MappedSelectionModel::_selectionChanged(const QItemSelection &selected, con
Q_UNUSED(deselected)
emit mappedSelectionChanged(mapSelectionToSource(QItemSelectionModel::selection()));
}
Q_UNUSED(deselected)
emit mappedSelectionChanged(mapSelectionToSource(QItemSelectionModel::selection()));
}
-
+