[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdewebdev/quanta/treeviews
From: Andras Mantia <amantia () kde ! org>
Date: 2006-09-02 9:09:25
Message-ID: 1157188165.842364.20345.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 579974 by amantia:
Avoid duplicatet entries for top folders. Can happen if the user user both the old \
and current quanta in parallel.
M +8 -5 filestreeview.cpp
--- branches/KDE/3.5/kdewebdev/quanta/treeviews/filestreeview.cpp #579973:579974
@@ -59,11 +59,14 @@
{
url = KURL();
QuantaCommon::setUrl(url, topStrList[i]);
- topURLList.append(url);
- if (i < topStrAliasList.count())
- topURLAliases.insert(url.url(), topStrAliasList[i]);
- else
- topURLAliases.insert(url.url(), url.fileName());
+ if (!topURLList.contains(url))
+ {
+ topURLList.append(url);
+ if (i < topStrAliasList.count())
+ topURLAliases.insert(url.url(), topStrAliasList[i]);
+ else
+ topURLAliases.insert(url.url(), url.fileName());
+ }
}
m_config->setGroup("General Options");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic