summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-20 11:40:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-20 11:40:53 +0200
commit20e00b43a6cfd2db5507753f828f54e3dd07d515 (patch)
tree0c198e088dcb37ff08d181fe3ea883dd42b740a8
parent89f974ad6e9f8b8c3d33e45d29f491f2209e3624 (diff)
options/connector: fix infinite loop
-rw-r--r--options/connector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/connector.cpp b/options/connector.cpp
index f23db06d..c721971d 100644
--- a/options/connector.cpp
+++ b/options/connector.cpp
@@ -11,10 +11,10 @@ void connector::on_value_destructed(const QString& name, const base_value* val)
QMutexLocker l(get_mtx());
auto it = connected_values.find(name);
- if (it != connected_values.cend())
+ if (it != connected_values.end())
{
std::vector<const base_value*>& values = (*it).second;
- for (auto it = values.begin(); it != values.end(); )
+ for (auto it = values.begin(); it != values.end(); it++)
{
if (*it == val)
{