mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-20 12:54:52 -04:00
Added parts of patch from Bogdan:
- Fixed assign with "==" instead of "=" in rsinit.cc - Fixed double declare of variable item in GroupTreeWidget::calculateScore git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.5@7417 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a4b79f2346
commit
9d95832f6e
2 changed files with 5 additions and 5 deletions
|
@ -638,7 +638,7 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored, bool strictCheck
|
|||
if (!existingUser)
|
||||
{
|
||||
std::cerr << "No Existing User" << std::endl;
|
||||
RsInitConfig::preferedId == "";
|
||||
RsInitConfig::preferedId = "";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -503,15 +503,15 @@ void GroupTreeWidget::calculateScore(QTreeWidgetItem *item, const QString &filte
|
|||
|
||||
/* Find out which has given word in it */
|
||||
QTreeWidgetItemIterator itemIterator(ui->treeWidget);
|
||||
QTreeWidgetItem *item;
|
||||
while ((item = *itemIterator) != NULL) {
|
||||
QTreeWidgetItem *tmpItem;
|
||||
while ((tmpItem = *itemIterator) != NULL) {
|
||||
itemIterator++;
|
||||
|
||||
if (item->data(COLUMN_DATA, ROLE_ID).toString().isEmpty()) {
|
||||
if (tmpItem->data(COLUMN_DATA, ROLE_ID).toString().isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
calculateScore(item, filterText);
|
||||
calculateScore(tmpItem, filterText);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue