summaryrefslogtreecommitdiffstats
path: root/src/gui/connectionList.cpp
diff options
context:
space:
mode:
authorJohann Latocha2011-06-04 12:36:31 +0200
committerJohann Latocha2011-06-04 12:36:31 +0200
commit4b243af3de3ff2534a0d87225f52074490bdf8fd (patch)
tree673eaa89cfc8e19f49e35ae8299913212b71d7a1 /src/gui/connectionList.cpp
parent[PVS] VNCpasswd bug fixed (diff)
downloadpvs-4b243af3de3ff2534a0d87225f52074490bdf8fd.tar.gz
pvs-4b243af3de3ff2534a0d87225f52074490bdf8fd.tar.xz
pvs-4b243af3de3ff2534a0d87225f52074490bdf8fd.zip
Enhancement #831
Diffstat (limited to 'src/gui/connectionList.cpp')
-rw-r--r--src/gui/connectionList.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/connectionList.cpp b/src/gui/connectionList.cpp
index f0fb7d6..991ad26 100644
--- a/src/gui/connectionList.cpp
+++ b/src/gui/connectionList.cpp
@@ -571,16 +571,14 @@ QList<QString> ConnectionList::getTargetToDisplay(QString source)
projectList.clear();
for (int i=0; i<model->rowCount(QModelIndex()); i++)
- {
- QString item = model->index(i, 1, QModelIndex()).data(Qt::DisplayRole).toString();
- if (item.compare(source) != 0 && !targetList.contains(item) && !sourceList.contains(item))
- {
+ {
+ QString item = model->index(i, 1, QModelIndex()).data(Qt::DisplayRole).toString();
+ if (item.compare(source) != 0 && !targetList.contains(item) && !sourceList.contains(item))
+ {
displayList.append(item);
- }
- }
-
+ }
+ }
return displayList;
-
}
void ConnectionList::addTargetToProjectList(QString name)