Commit d4409014 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't shadow variable

parent 3cea1fcd
Pipeline #105711 passed with stage
in 11 minutes and 30 seconds
......@@ -106,21 +106,21 @@ void SelectImapLoadFoldersJob::slotMailBoxesReceived(const QList<KIMAP::MailBoxD
QStandardItem *parentItem = mItemsMap[parentPath];
auto item = new QStandardItem(pathPart);
Qt::ItemFlags flags = Qt::ItemIsEnabled;
Qt::ItemFlags itemflags = Qt::ItemIsEnabled;
if (isSelectable) {
flags |= Qt::ItemIsSelectable;
itemflags |= Qt::ItemIsSelectable;
}
item->setFlags(flags);
item->setFlags(itemflags);
item->setData(currentPath.mid(1), PathRole);
parentItem->appendRow(item);
mItemsMap[currentPath] = item;
} else {
auto item = new QStandardItem(pathPart);
Qt::ItemFlags flags = Qt::ItemIsEnabled;
Qt::ItemFlags itemflags = Qt::ItemIsEnabled;
if (isSelectable) {
flags |= Qt::ItemIsSelectable;
itemflags |= Qt::ItemIsSelectable;
}
item->setFlags(flags);
item->setFlags(itemflags);
item->setData(currentPath.mid(1), PathRole);
mModel->appendRow(item);
mItemsMap[currentPath] = item;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment