We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a416f6 commit ec28f64Copy full SHA for ec28f64
src/alldocsview.cpp
@@ -156,15 +156,23 @@ QWidget* AllDocsView::initializeTreeWidget()
156
void AllDocsView::setView( ViewType type )
157
{
158
// change the document listing widget
159
+ QModelIndex current;
160
if( type == FlatList) {
161
_stack->setCurrentIndex(0);
162
+ current = _tableView->currentIndex();
163
} else {
164
_stack->setCurrentIndex(1);
165
+ current = _dateView->currentIndex();
166
}
167
// clear the details view
168
mAllViewDetails->slotClearView();
169
- mCurrentlySelected = QModelIndex();
170
+ if( current.isValid() > 0 ) {
171
+ slotCurrentChanged(current, QModelIndex());
172
+ } else {
173
+ // workaround, not cool.
174
+ mCurrentlySelected = QModelIndex();
175
+ }
176
177
178
void AllDocsView::slotBuildView()
0 commit comments