Changeset View
Changeset View
Standalone View
Standalone View
sidebar/SidebarMode.cpp
Show First 20 Lines • Show All 468 Lines • ▼ Show 20 Line(s) | |||||
469 | { | 469 | { | ||
470 | const QModelIndex idx = d->searchModel->index(cat, 0); | 470 | const QModelIndex idx = d->searchModel->index(cat, 0); | ||
471 | int newCategoryRow; | 471 | int newCategoryRow; | ||
472 | if (cat != -1) { | 472 | if (cat != -1) { | ||
473 | setIntroPageVisible(false); | 473 | setIntroPageVisible(false); | ||
474 | newCategoryRow = d->searchModel->mapToSource(idx).row(); | 474 | newCategoryRow = d->searchModel->mapToSource(idx).row(); | ||
475 | } else { | 475 | } else { | ||
476 | newCategoryRow = cat; | 476 | newCategoryRow = cat; | ||
477 | emit d->moduleView->moduleChanged(false); | ||||
477 | } | 478 | } | ||
478 | 479 | | |||
479 | if (d->activeCategory == newCategoryRow) { | 480 | if (d->activeCategory == newCategoryRow) { | ||
480 | return; | 481 | return; | ||
481 | } | 482 | } | ||
482 | if( !d->moduleView->resolveChanges() ) { | 483 | if( !d->moduleView->resolveChanges() ) { | ||
483 | return; | 484 | return; | ||
484 | } | 485 | } | ||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |