Publish tool cleanup and Framework monitoring refinements
This commit is contained in:
@@ -43,15 +43,15 @@ QVector<int> logicalTaskRows(const QAbstractItemModel &model, bool separateLaunc
|
||||
continue;
|
||||
}
|
||||
|
||||
const QString launcherAppId = launcher.data(AbstractTasksModel::AppId).toString();
|
||||
const QUrl launcherUrl = launcher.data(AbstractTasksModel::LauncherUrlWithoutIcon).toUrl();
|
||||
for (int windowRow = 0; windowRow < model.rowCount(); ++windowRow) {
|
||||
const QModelIndex window = model.index(windowRow, 0);
|
||||
if (!window.data(AbstractTasksModel::IsWindow).toBool()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const QString launcherAppId = launcher.data(AbstractTasksModel::AppId).toString();
|
||||
const QString windowAppId = window.data(AbstractTasksModel::AppId).toString();
|
||||
const QUrl launcherUrl = launcher.data(AbstractTasksModel::LauncherUrlWithoutIcon).toUrl();
|
||||
const QUrl windowUrl = window.data(AbstractTasksModel::LauncherUrlWithoutIcon).toUrl();
|
||||
if ((!launcherAppId.isEmpty() && launcherAppId == windowAppId)
|
||||
|| (launcherUrl.isValid() && windowUrl.isValid()
|
||||
@@ -76,6 +76,9 @@ QVector<int> logicalTaskRows(const QAbstractItemModel &model, bool separateLaunc
|
||||
int initialCyclePosition(const QAbstractItemModel &model, int row, bool startWithFirst, bool backwards)
|
||||
{
|
||||
const QModelIndex group = model.index(row, 0);
|
||||
if (!group.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
const int childCount = model.rowCount(group);
|
||||
if (childCount == 0) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user