summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index cf193ff0..31d5277e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -66,12 +66,9 @@ private:
{
inst = iter.next();
if (inst->id() == instId)
- break;
+ return inst;
}
- if (inst->id() != instId)
- return InstancePtr();
- else
- return iter.peekPrevious();
+ return InstancePtr();
}
private slots: